Qizx/db 2.1 API

com.qizx.api
Class LibraryException

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

public class LibraryException
extends DataModelException

A specific class of DataModelException raised by Library operations.

See Also:
Serialized Form

Field Summary
static QName IN_IMPORT
          Code for errors in import operations.
static QName IN_UPDATE
          Code for errors in update operations.
static QName LOCKED
          Code used when trying to open a locked Library.
static QName MEMBER_NOT_FOUND
          Error code used for a non-existent Document or Collection.
static QName MISC
          Error code used by default.
static QName QUERY
          Code for errors in query operations.
 
Fields inherited from class com.qizx.api.QizxException
errorCode
 
Constructor Summary
LibraryException(QName errorCode, String message)
          Constructs a LibraryException with a message and an XQuery error code.
LibraryException(String message)
          Constructs a DataModelException from a simple message.
LibraryException(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
 

Field Detail

MISC

public static QName MISC
Error code used by default.


MEMBER_NOT_FOUND

public static QName MEMBER_NOT_FOUND
Error code used for a non-existent Document or Collection.


IN_IMPORT

public static QName IN_IMPORT
Code for errors in import operations.


IN_UPDATE

public static QName IN_UPDATE
Code for errors in update operations.


QUERY

public static QName QUERY
Code for errors in query operations.


LOCKED

public static QName LOCKED
Code used when trying to open a locked Library.

Constructor Detail

LibraryException

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

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

LibraryException

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

Parameters:
message - reason for the exception

LibraryException

public LibraryException(QName errorCode,
                        String message)
Constructs a LibraryException 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

© 2008 Axyana Software