public class XmlException extends DatabaseException
This object is not thread-safe, and can only be safely used by one thread at a time in an application.
Modifier and Type | Field and Description |
---|---|
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 |
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 |
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 |
QUERY_EVALUATION_ERROR
Error evaluating an XQuery expression
|
static int |
QUERY_PARSER_ERROR
Error parsing an XQuery expression
|
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
|
Constructor and Description |
---|
XmlException(int errcode,
java.lang.String description,
DatabaseException dbex,
int dberr)
Construct an XmlException.
|
Modifier and Type | Method and Description |
---|---|
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 QUERY_PARSER_ERROR.
|
int |
getQueryLine()
Returns the line
of the XQuery expression that contains the error causing
the exception, in the case of QUERY_PARSER_ERROR.
|
getEnvironment, getErrno, toString
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 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 UNKNOWN_INDEX
public static final int QUERY_EVALUATION_ERROR
public static final int QUERY_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
public XmlException(int errcode, java.lang.String description, DatabaseException dbex, int dberr)
public DatabaseException getDatabaseException()
public int getErrorCode()
public int getQueryLine()
public int getQueryColumn()
Copyright (c) 2004,2014 Oracle. All rights reserved.