Qizx fe-4.4p2 API

com.qizx.api
Class LibraryException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.qizx.api.QizxException
              extended by com.qizx.api.DataModelException
                  extended by com.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 NON_XML
           
static QName QUERY
          Code for errors in query operations.
 
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.
 
Method Summary
 
Methods inherited from class com.qizx.api.QizxException
getErrorCode, setErrorCode, setErrorCode, substituteCode
 
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
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

MISC

public static final QName MISC
Error code used by default.


MEMBER_NOT_FOUND

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


IN_IMPORT

public static final QName IN_IMPORT
Code for errors in import operations.


IN_UPDATE

public static final QName IN_UPDATE
Code for errors in update operations.


QUERY

public static final QName QUERY
Code for errors in query operations.


LOCKED

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


NON_XML

public static final QName NON_XML
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

© 2010 Axyana Software