#include <DomException.h>
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. |
An enum indicating the type of error generated.
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.
|
xmldom::DomException::~DomException | ( | ) |
dtor
DomException::ExceptionCode xmldom::DomException::getCode | ( | ) | const |
Get the ExceptionCode of this exception.