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);

  

 

 

 

back to top