Save This Page
Home » Xerces-J-src.2.9.1 » org.apache.xerces » util » [javadoc | source]
org.apache.xerces.util
public class: DOMErrorHandlerWrapper [javadoc | source]
java.lang.Object
   org.apache.xerces.util.DOMErrorHandlerWrapper

All Implemented Interfaces:
    DOMErrorHandler, XMLErrorHandler

This class handles DOM errors .
Field Summary
protected  DOMErrorHandler fDomErrorHandler     
 boolean eStatus     
protected  PrintWriter fOut     
public  Node fCurrentNode     
protected final  XMLErrorCode fErrorCode    Error code for comparisons. 
protected final  DOMErrorImpl fDOMError     
Constructor:
 public DOMErrorHandlerWrapper() 
 public DOMErrorHandlerWrapper(DOMErrorHandler domErrorHandler) 
Method from org.apache.xerces.util.DOMErrorHandlerWrapper Summary:
error,   fatalError,   getErrorHandler,   handleError,   setErrorHandler,   warning
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.xerces.util.DOMErrorHandlerWrapper Detail:
 public  void error(String domain,
    String key,
    XMLParseException exception) throws XNIException 
    Reports an error. Errors are non-fatal and usually signify that the document is invalid with respect to its grammar(s).
 public  void fatalError(String domain,
    String key,
    XMLParseException exception) throws XNIException 
    Report a fatal error. Fatal errors usually occur when the document is not well-formed and signifies that the parser cannot continue normal operation.

    Note: The error handler should always throw an XNIException from this method. This exception can either be the same exception that is passed as a parameter to the method or a new XNI exception object. If the registered error handler fails to throw an exception, the continuing operation of the parser is undetermined.

 public DOMErrorHandler getErrorHandler() 
 public boolean handleError(DOMError error) 
 public  void setErrorHandler(DOMErrorHandler errorHandler) 
    Sets the DOM error handler.
 public  void warning(String domain,
    String key,
    XMLParseException exception) throws XNIException 
    Reports a warning. Warnings are non-fatal and can be safely ignored by most applications.