|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
com.virtualweaver.xotics.datamodel.XoException
Main XO core exception. Used by all core elements to throw system exceptions.
Field Summary | |
static short |
ADD_ERROR
Error occurred during Xo Object adding in DM instance. |
static short |
DMI_LOCKED
Occurs when DM instance is accessed by a thread while its locked by another thread |
static short |
DMI_NOT_OWNER
Occurs when DM instance attempts to manipulate an Xo object belonging to another DM instance |
static short |
DMI_RELEASED
Occurs when attempting to use a released DM instance |
static short |
DMM_LOAD
When an error occurred during DM module load/unload. |
static short |
ILLEGAL_ARGUMENT
When argument specified is not valid (i.e. null object). |
static short |
INVALID_DATAMODEL
This data-model is invalid. |
static short |
INVALID_OBJECT
When an Xo object or derived or PropertyEditor is not valid. |
static short |
NO_SUCH_DATAMODEL
This data-model is unknown. |
static short |
NO_SUCH_OBJECT
Xo object or Property editor not found. |
static short |
NOT_REQUESTABLE
Occurs when DM instance is XPath requested but instace is created in basic mode |
static short |
OBJECT_NOT_WELCOME
When an Xo object to add as child is not accepted by target parent. |
static short |
READ_ONLY
Occurs when an attempt to add/remove nodes in a DM instance is made when in read only mode. |
static short |
ROOT_MOVE
Occurs when an attempt to (re)move root object is made. |
static short |
THROWABLE_OCCURRED
When a Throwable is intercepted in code. |
static short |
UNKNOWN_REASON
When the reason of this exception is not specified. |
static short |
VALIDITY_CHECKING
When a DM instance is not XML valid. |
static short |
XPATH_REQUEST_COMPUTING
Occurs when an error occurs during XPath request processing |
static short |
XPATH_REQUEST_PARSING
Occurs when an error occurs during XPath parsing |
Constructor Summary | |
XoException(short reason,
java.lang.String details)
Constructor. |
|
XoException(java.lang.String id,
short reason,
java.lang.String details)
Constructor. |
Method Summary | |
java.lang.String |
getId()
Returns the ID to localize error in source code. |
short |
getReason()
Returns the reason of error. |
java.lang.String |
toString()
Returns a String representation of this exception. |
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 |
Field Detail |
public static final short UNKNOWN_REASON
public static final short ILLEGAL_ARGUMENT
public static final short OBJECT_NOT_WELCOME
public static final short VALIDITY_CHECKING
public static final short INVALID_OBJECT
public static final short THROWABLE_OCCURRED
public static final short DMM_LOAD
public static final short NO_SUCH_DATAMODEL
public static final short INVALID_DATAMODEL
public static final short ADD_ERROR
public static final short NO_SUCH_OBJECT
public static final short READ_ONLY
public static final short ROOT_MOVE
public static final short DMI_NOT_OWNER
public static final short DMI_LOCKED
public static final short NOT_REQUESTABLE
public static final short XPATH_REQUEST_PARSING
public static final short XPATH_REQUEST_COMPUTING
public static final short DMI_RELEASED
Constructor Detail |
public XoException(short reason, java.lang.String details)
reason
- the reason code defining this exception among those defined in this classdetails
- a description of this exceptionpublic XoException(java.lang.String id, short reason, java.lang.String details)
id
- a string id to localize error in source codereason
- the reason code defining this exception among those defined in this classdetails
- a description of this exceptionMethod Detail |
public java.lang.String getId()
public short getReason()
public java.lang.String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |