xmldom::DomException Class Reference

#include <DomException.h>

List of all members.


Detailed Description

DOM operations only raise exceptions in "exceptional" circumstances, i.e., when an operation is impossible to perform (either for logical reasons, because data is lost, or because the implementation has become unstable).

In general, DOM methods return specific error values in ordinary processing situations, such as out-of-bound errors when using DomNodeList.


Public Types

enum  ExceptionCode {
  IndexSizeErr = 1, DomstringSizeErr = 2, HierarchyRequestErr = 3, WrongDocumentErr = 4,
  InvalidCharacterErr = 5, NoDataAllowedErr = 6, NoModificationAllowedErr = 7, NotFoundErr = 8,
  NotSupportedErr = 9, InuseAttributeErr = 10, InvalidStateErr = 11, SyntaxErr = 12,
  InvalidModificationErr = 13, NamespaceErr = 14, InvalidAccessErr = 15, ValidationErr = 16,
  TypeMismatchErr = 17
}
 An enum indicating the type of error generated. More...
DOM Level 1
DOM Level 2
DOM Level 3

Public Member Functions

 ~DomException ()
 dtor
ExceptionCode getCode () const
 Get the ExceptionCode of this exception.


Member Enumeration Documentation

enum xmldom::DomException::ExceptionCode

An enum indicating the type of error generated.

Note:
Other numeric codes are reserved for W3C for possible future use.
Enumerator:
IndexSizeErr  If index or size is negative, or greater than the allowed value.
DomstringSizeErr  If the specified range of text does not fit into a DomString.
HierarchyRequestErr  If any DomNode is inserted somewhere it doesn't belong.
WrongDocumentErr  If a DomNode is used in a different document than the one that created it (that doesn't support it).
InvalidCharacterErr  If an invalid or illegal character is specified, such as in an XML name.
NoDataAllowedErr  If data is specified for a DomNode which does not support data.
NoModificationAllowedErr  If an attempt is made to modify an object where modifications are not allowed.
NotFoundErr  If an attempt is made to reference a DomNode in a context where it does not exist.
NotSupportedErr  If the implementation does not support the requested type of object or operation.
InuseAttributeErr  If an attempt is made to add an attribute that is already in use elsewhere.

InvalidStateErr  If an attempt is made to use an object that is not, or is no longer, usable.
SyntaxErr  If an invalid or illegal string is specified.
InvalidModificationErr  If an attempt is made to modify the type of the underlying object.
NamespaceErr  If an attempt is made to create or change an object in a way which is incorrect with regard to namespaces.
InvalidAccessErr  If a parameter or an operation is not supported by the underlying object.

ValidationErr  If a call to a method such as DomNode::insertBefore() or DomNode::removeChild() would make the DomNode invalid with respect to "partial validity", this exception would be raised and the operation would not be done.
TypeMismatchErr  If the type of an object is incompatible with the expected type of the parameter associated to the object.


Constructor & Destructor Documentation

xmldom::DomException::~DomException (  ) 

dtor


Member Function Documentation

DomException::ExceptionCode xmldom::DomException::getCode (  )  const

Get the ExceptionCode of this exception.


The documentation for this class was generated from the following files:
Generated on Fri May 30 11:15:12 2008 for XMLDOM by  doxygen 1.5.2