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. The XmlException class exposes the following methods:

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

Description: XmlException::what()

The what() method returns a description of the exception.


Description: XmlException.getExceptionCode

The getExceptionCode() method returns the exception code.


Description: XmlException.getDbErrno

The getDbErrno() method retrieves the Berkeley DB error number for an XmlException with ExceptionCode DATABASE_ERROR.


APIRef

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