com.virtualweaver.xotics.datamodel
Class XoRedirectException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended bycom.virtualweaver.xotics.datamodel.XoException
              extended bycom.virtualweaver.xotics.datamodel.XoRedirectException
All Implemented Interfaces:
java.io.Serializable

public class XoRedirectException
extends XoException

This exception serves to embed another exception occurred and intercepted. It's equivalent to a standard XoException with reason set to XoException.THROWABLE_OCCURRED.

Version:
4.1
See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.virtualweaver.xotics.datamodel.XoException
ADD_ERROR, DMI_LOCKED, DMI_NOT_OWNER, DMI_RELEASED, DMM_LOAD, ILLEGAL_ARGUMENT, INVALID_DATAMODEL, INVALID_OBJECT, NO_SUCH_DATAMODEL, NO_SUCH_OBJECT, NOT_REQUESTABLE, OBJECT_NOT_WELCOME, READ_ONLY, ROOT_MOVE, THROWABLE_OCCURRED, UNKNOWN_REASON, VALIDITY_CHECKING, XPATH_REQUEST_COMPUTING, XPATH_REQUEST_PARSING
 
Constructor Summary
XoRedirectException(java.lang.String id, java.lang.Throwable t, java.lang.String d)
          Constructor.
XoRedirectException(java.lang.Throwable t, java.lang.String d)
          Constructor.
 
Method Summary
 java.lang.Throwable getThrowable()
          Returns the Throwable intercepted.
 java.lang.String toString()
          Returns a String representation of this exception.
 
Methods inherited from class com.virtualweaver.xotics.datamodel.XoException
getId, getReason
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

XoRedirectException

public XoRedirectException(java.lang.String id,
                           java.lang.Throwable t,
                           java.lang.String d)
Constructor.

Parameters:
id - localized error id
t - Throwable intercepted and embedded
d - string details

XoRedirectException

public XoRedirectException(java.lang.Throwable t,
                           java.lang.String d)
Constructor.

Parameters:
t - Throwable intercepted and embedded
d - string details
Method Detail

getThrowable

public java.lang.Throwable getThrowable()
Returns the Throwable intercepted.

Returns:
a Throwable object

toString

public java.lang.String toString()
Description copied from class: XoException
Returns a String representation of this exception.

Overrides:
toString in class XoException
Returns:
a string representation of this exception