XmlException API Ref

#include <DbXml.hpp>

class DbXml::XmlException : public std::exception { public: virtual const char *what() const throw(); ExceptionCode getExceptionCode(); int getDbErrno(); ... };


Description: XmlException

The XmlException class represents 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. Methods on this class may be used to get further information regarding the exception. Some of these include XmlException::what and XmlException::getExceptionCode.

This object is not thread-safe, and can only be safely used by one thread at a time in an application.

Below is a description of the exceptions codes that may be returned from XmlException::getExceptionCode:
XmlException::CONTAINER_CLOSED

XmlException::CONTAINER_EXISTS XmlException::CONTAINER_NOT_FOUND XmlException::CONTAINER_OPEN XmlException::DATABASE_ERROR XmlException::DOCUMENT_NOT_FOUND XmlException::EVENT_ERROR XmlException::INDEXER_PARSER_ERROR XmlException::INTERNAL_ERROR XmlException::INVALID_VALUE XmlException::LAZY_EVALUATION XmlException::NO_MEMORY_ERROR XmlException::NULL_POINTER XmlException::OPERATION_INTERRUPTED XmlException::OPERATION_TIMEOUT XmlException::TRANSACTION_ERROR XmlException::UNIQUE_ERROR XmlException::UNKNOWN_INDEX XmlException::VERSION_MISMATCH XmlException::QUERY_EVALUATION_ERROR XmlException::QUERY_PARSER_ERROR


APIRef

Copyright (c) 1996-2009 Oracle. All rights reserved.