com.virtualweaver.xotics.datamodel
Class XoValidityException

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

public final class XoValidityException
extends XoException

This exception permits to identify the XO node where a validity error has 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
XoValidityException(java.lang.String id, int sid, XoNode xo, java.lang.String t)
          Constructor for validity checking engine.
XoValidityException(java.lang.String id, XoNode xo, java.lang.String t)
          Constructor with a description specification.
XoValidityException(XoNode xo, java.lang.String t)
          Constructor with a description specification.
XoValidityException(XoValidityException e, int sid)
          Constructor for validity checking engine.
 
Method Summary
 XoNode getInvalidXoNode()
          Returns the node whose invalidity is source of this exception.
 int getSourceId()
           
 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

XoValidityException

public XoValidityException(XoNode xo,
                           java.lang.String t)
Constructor with a description specification.

Parameters:
xo - invalid XO node (DM instance, property, object)
t - the description text of this exception

XoValidityException

public XoValidityException(java.lang.String id,
                           XoNode xo,
                           java.lang.String t)
Constructor with a description specification.

Parameters:
xo - invalid XO node (DM instance, property, object)
t - the description text of this exception

XoValidityException

public XoValidityException(java.lang.String id,
                           int sid,
                           XoNode xo,
                           java.lang.String t)
Constructor for validity checking engine.


XoValidityException

public XoValidityException(XoValidityException e,
                           int sid)
Constructor for validity checking engine.

Method Detail

getInvalidXoNode

public XoNode getInvalidXoNode()
Returns the node whose invalidity is source of this exception. It can be at a DM instance, property or object level.

Returns:
invalid XO node

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

getSourceId

public int getSourceId()