Berkeley DB XML
version 2.0.7

com.sleepycat.dbxml
Class XmlException

java.lang.Object
  extended bycom.sleepycat.dbxml.XmlException

public class XmlException
extends Object

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
           
static int CONTAINER_EXISTS
           
static int CONTAINER_NOT_FOUND
           
static int CONTAINER_OPEN
           
static int CONTAINER_PASSED_WRONG_OBJECT
           
static int DATABASE_ERROR
           
static int DOCUMENT_NOT_FOUND
           
static int DOM_PARSER_ERROR
           
static int DYNAMIC_CONTEXT_ERROR
           
static int INDEXER_PARSER_ERROR
           
static int INTERNAL_ERROR
           
static int INVALID_VALUE
           
static int LAZY_EVALUATION
           
static int NO_MEMORY_ERROR
           
static int NO_VARIABLE_BINDING
           
static int TRANSACTION_ERROR
           
static int UNIQUE_ERROR
           
static int UNKNOWN_INDEX
           
static int VERSION_MISMATCH
           
static int XPATH_EVALUATION_ERROR
           
static int XPATH_PARSER_ERROR
           
 
Constructor Summary
XmlException(int errcode, String description, 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.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONTAINER_CLOSED

public static final int CONTAINER_CLOSED
See Also:
Constant Field Values

CONTAINER_EXISTS

public static final int CONTAINER_EXISTS
See Also:
Constant Field Values

CONTAINER_OPEN

public static final int CONTAINER_OPEN
See Also:
Constant Field Values

DATABASE_ERROR

public static final int DATABASE_ERROR
See Also:
Constant Field Values

DOCUMENT_NOT_FOUND

public static final int DOCUMENT_NOT_FOUND
See Also:
Constant Field Values

DOM_PARSER_ERROR

public static final int DOM_PARSER_ERROR
See Also:
Constant Field Values

INDEXER_PARSER_ERROR

public static final int INDEXER_PARSER_ERROR
See Also:
Constant Field Values

INTERNAL_ERROR

public static final int INTERNAL_ERROR
See Also:
Constant Field Values

INVALID_VALUE

public static final int INVALID_VALUE
See Also:
Constant Field Values

VERSION_MISMATCH

public static final int VERSION_MISMATCH
See Also:
Constant Field Values

LAZY_EVALUATION

public static final int LAZY_EVALUATION
See Also:
Constant Field Values

NO_VARIABLE_BINDING

public static final int NO_VARIABLE_BINDING
See Also:
Constant Field Values

UNKNOWN_INDEX

public static final int UNKNOWN_INDEX
See Also:
Constant Field Values

XPATH_EVALUATION_ERROR

public static final int XPATH_EVALUATION_ERROR
See Also:
Constant Field Values

XPATH_PARSER_ERROR

public static final int XPATH_PARSER_ERROR
See Also:
Constant Field Values

CONTAINER_PASSED_WRONG_OBJECT

public static final int CONTAINER_PASSED_WRONG_OBJECT
See Also:
Constant Field Values

DYNAMIC_CONTEXT_ERROR

public static final int DYNAMIC_CONTEXT_ERROR
See Also:
Constant Field Values

CONTAINER_NOT_FOUND

public static final int CONTAINER_NOT_FOUND
See Also:
Constant Field Values

TRANSACTION_ERROR

public static final int TRANSACTION_ERROR
See Also:
Constant Field Values

UNIQUE_ERROR

public static final int UNIQUE_ERROR
See Also:
Constant Field Values

NO_MEMORY_ERROR

public static final int NO_MEMORY_ERROR
See Also:
Constant Field Values
Constructor Detail

XmlException

public XmlException(int errcode,
                    String description,
                    int dberr)
Construct an XmlException.

Method Detail

getDatabaseException

public DatabaseException getDatabaseException()
Retrieves the Berkeley DB exception object for an XmlException with error code DATABASE_ERROR.


getErrorCode

public int getErrorCode()
Returns the exception code: one of the XmlException class constants.


Berkeley DB XML
version 2.0.7

Copyright (c) 1996-2004 Sleepycat Software, Inc. - All rights reserved.