XML technologies / XML / XML in a Nutshell / DOM reference / Object reference / DOMError
(Excerpt from "XML in a Nutshell" by Elliotte Rusty Harold & W. Scott Means)
This interface defines an object containing information about errors occurring during DOM operations. It is used as a parameter to the callback method DOMErrorHandler.handleError( ).
Attributes
The object DOMError has the following attributes:
location: DOMLocator(3)
Contains information about where the error occurred in the original XML document and within the DOM tree. Read-only.
Java binding
public DOMLocator getLocation( );
message: DOMString(3)
A message generated by the DOM implementation describing the error. Read-only.
Java binding
public String getMessage( );
relatedData: DOMObject (3)
Depending on the attribute type this object probably contains a reference to the DOM Node object that caused the error.
Java binding
public Object getRelatedData( )
relatedException: DOMObject (3)
If the error results from a platform-specific exception, this attribute contains a reference to the exception object in question.
Java binding
public Object getRelatedException( )
severity: unsigned short (3)
This attribute contains the error’s severity, specified by one of the constants in the following table:
| | |
| | |
| | |
| | |
Java binding
public short getSeverity( )
type: DOMString (3)
The value of the attribute type determines the type of object reference that appears in the attribute relatedData.
Java binding
public String getType( )
Methods
The object DOMError has no methods.
Copyright © 2005 O'Reilly Verlag GmbH & Co. KG
You may print the online version for your private use.
Otherwise, this chapter from the book "XML in a Nutshell" is subject to the same conditions as the printed edition: the work and all its parts are protected by copyright. All rights reserved, including reproduction, translation, microfilming, and storage and processing in electronic systems.
O’Reilly Verlag GmbH & Co. KG, Balthasarstraße 81, 50670 Köln, kommentar(at)oreilly.de