XML technologies / XML / XML in a Nutshell / DOM reference / Object reference / DOMErrorHandler
(Excerpt from "XML in a Nutshell" by Elliotte Rusty Harold & W. Scott Means)
This is a callback interface that allows DOM programmers to register an object that receives notifications when errors occur during a DOM operation. The method DOMConfiguration.setParameter( ) is used together with the parameter error-handler to register a DOMErrorHandler for a given implementation.
Attributes
The object DOMErrorHandler has no attributes.
Method
The following method is defined for this object:
handleError: error (3)
This is the callback method invoked by DOM when an error occurs. DOM programmers are responsible for implementing this method, handling errors and deciding whether processing should stop or continue. If this method returns true, processing continues (unless an error with severity SEVERITY_FATAL_ERROR has occurred). If it returns false, processing stops.
Argument
error: DOMError
The object describing the error.
Java binding
public boolean handleError(DOMError error);
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