|
Berkeley DB XML version 2.3.10 |
|||||||||
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.sleepycat.db.DatabaseException
com.sleepycat.dbxml.XmlException
public class XmlException
A represention of an error condition that has occurred within the Berkeley DB XML system. The system throws an XmlException if an API method call results in an error condition.
This object is not thread-safe, and can only be safely used by one thread at a time in an application.
Field Summary | |
---|---|
static int |
CONTAINER_CLOSED
Container is closed and operation requires an open Container |
static int |
CONTAINER_EXISTS
Container exists |
static int |
CONTAINER_NOT_FOUND
Requested container could not be found |
static int |
CONTAINER_OPEN
Container is open and operation requires a closed Container |
static int |
DATABASE_ERROR
Unmapped error from the Berkeley DB database layer |
static int |
DOCUMENT_NOT_FOUND
Named document not found |
static int |
DOM_PARSER_ERROR
Error while parsing a document for querying |
static int |
EVENT_ERROR
Error during XmlEventReader or XmlEventWriter processing |
static int |
INDEXER_PARSER_ERROR
Error while parsing a document for indexing |
static int |
INTERNAL_ERROR
Internal system error |
static int |
INVALID_VALUE
An invalid parameter value was passed to an interface |
static int |
LAZY_EVALUATION
Attempt to add an XmlValue object to a lazy result set |
static int |
NO_MEMORY_ERROR
Out of memory error |
static int |
NO_VARIABLE_BINDING
No binding for referenced variable |
static int |
NULL_POINTER
An attempt was made to access an uninitialized object |
static int |
OPERATION_INTERRUPTED
Operation was interrupted by the application |
static int |
OPERATION_TIMEOUT
Operation timed out |
static int |
TRANSACTION_ERROR
Invalid operation on XmlTransaction |
static int |
UNIQUE_ERROR
Violation of uniqueness constraint on an index |
static int |
UNKNOWN_INDEX
Requested index either not valid or not found |
static int |
VERSION_MISMATCH
Library version and database version are not compatible |
static int |
XPATH_EVALUATION_ERROR
Error evaluating an XQuery expression |
static int |
XPATH_PARSER_ERROR
Error parsing an XQuery expression |
Constructor Summary | |
---|---|
XmlException(int errcode,
String description,
DatabaseException dbex,
int dberr)
Construct an XmlException. |
Method Summary | |
---|---|
DatabaseException |
getDatabaseException()
Retrieves the Berkeley DB exception object for an XmlException with error code DATABASE_ERROR. |
int |
getErrorCode()
Returns the exception code: one of the XmlException class constants. |
int |
getQueryColumn()
Returns the column within the line of the XQuery expression that contains the error causing the exception, in the case of XPATH_PARSER_ERROR. |
int |
getQueryLine()
Returns the line of the XQuery expression that contains the error causing the exception, in the case of XPATH_PARSER_ERROR. |
Methods inherited from class com.sleepycat.db.DatabaseException |
---|
getEnvironment, getErrno, toString |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int CONTAINER_CLOSED
public static final int CONTAINER_EXISTS
public static final int CONTAINER_OPEN
public static final int DATABASE_ERROR
public static final int DOCUMENT_NOT_FOUND
public static final int DOM_PARSER_ERROR
public static final int INDEXER_PARSER_ERROR
public static final int INTERNAL_ERROR
public static final int INVALID_VALUE
public static final int NULL_POINTER
public static final int VERSION_MISMATCH
public static final int LAZY_EVALUATION
public static final int NO_VARIABLE_BINDING
public static final int UNKNOWN_INDEX
public static final int XPATH_EVALUATION_ERROR
public static final int XPATH_PARSER_ERROR
public static final int EVENT_ERROR
public static final int CONTAINER_NOT_FOUND
public static final int TRANSACTION_ERROR
public static final int UNIQUE_ERROR
public static final int NO_MEMORY_ERROR
public static final int OPERATION_TIMEOUT
public static final int OPERATION_INTERRUPTED
Constructor Detail |
---|
public XmlException(int errcode, String description, DatabaseException dbex, int dberr)
Method Detail |
---|
public DatabaseException getDatabaseException()
public int getErrorCode()
public int getQueryLine()
public int getQueryColumn()
|
Berkeley DB XML version 2.3.10 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |