Qizx/db 2.1 API

com.qizx.api
Class DataModelException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended bycom.qizx.api.QizxException
              extended bycom.qizx.api.DataModelException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
LibraryException

public class DataModelException
extends QizxException

Exception raised by operations on XML data.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.qizx.api.QizxException
errorCode
 
Constructor Summary
protected DataModelException()
          Default constructor, should not be used.
  DataModelException(QName errorCode, String message)
          Constructs a DataModelException with a message and an XQuery error code.
  DataModelException(String message)
          Constructs a DataModelException from a simple message.
  DataModelException(String code, String message)
          Constructs a DataModelException with a message and an XQuery error code in string form (uses the err: namespace).
  DataModelException(String message, Throwable cause)
          Constructs a DataModelException from a simple message and an exception.
 
Methods inherited from class com.qizx.api.QizxException
getErrorCode, setErrorCode, setErrorCode
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DataModelException

protected DataModelException()
Default constructor, should not be used.


DataModelException

public DataModelException(String message)
Constructs a DataModelException from a simple message. The error code is undefined.

Parameters:
message - reason for the exception

DataModelException

public DataModelException(String message,
                          Throwable cause)
Constructs a DataModelException from a simple message and an exception. The error code is undefined.

Parameters:
message - reason for the exception
cause - wrapped cause

DataModelException

public DataModelException(QName errorCode,
                          String message)
Constructs a DataModelException with a message and an XQuery error code.

Parameters:
errorCode - the QName of the error (in principle the XQuery error namespace http://www.w3.org/2005/xqt-errors)
message - reason for the exception

DataModelException

public DataModelException(String code,
                          String message)
Constructs a DataModelException with a message and an XQuery error code in string form (uses the err: namespace).

Parameters:
code - XQuery code such as XPTY0004
message - reason for the exception

© 2008 Axyana Software