Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.meterware.httpunit.parsing
Class ErrorHandler  view ErrorHandler download ErrorHandler.java

java.lang.Object
  extended bycom.meterware.httpunit.parsing.ErrorHandler
All Implemented Interfaces:
org.apache.xerces.xni.parser.XMLErrorHandler

class ErrorHandler
extends java.lang.Object
implements org.apache.xerces.xni.parser.XMLErrorHandler


Field Summary
private  java.net.URL _url
           
 
Constructor Summary
(package private) ErrorHandler(java.net.URL url)
           
 
Method Summary
 void error(java.lang.String domain, java.lang.String key, org.apache.xerces.xni.parser.XMLParseException errorException)
          Reports an error.
 void fatalError(java.lang.String domain, java.lang.String key, org.apache.xerces.xni.parser.XMLParseException fatalError)
          Report a fatal error.
 void warning(java.lang.String domain, java.lang.String key, org.apache.xerces.xni.parser.XMLParseException warningException)
          Reports a warning.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_url

private java.net.URL _url
Constructor Detail

ErrorHandler

ErrorHandler(java.net.URL url)
Method Detail

warning

public void warning(java.lang.String domain,
                    java.lang.String key,
                    org.apache.xerces.xni.parser.XMLParseException warningException)
             throws org.apache.xerces.xni.XNIException
Description copied from interface: org.apache.xerces.xni.parser.XMLErrorHandler
Reports a warning. Warnings are non-fatal and can be safely ignored by most applications.

Specified by:
warning in interface org.apache.xerces.xni.parser.XMLErrorHandler

error

public void error(java.lang.String domain,
                  java.lang.String key,
                  org.apache.xerces.xni.parser.XMLParseException errorException)
           throws org.apache.xerces.xni.XNIException
Description copied from interface: org.apache.xerces.xni.parser.XMLErrorHandler
Reports an error. Errors are non-fatal and usually signify that the document is invalid with respect to its grammar(s).

Specified by:
error in interface org.apache.xerces.xni.parser.XMLErrorHandler

fatalError

public void fatalError(java.lang.String domain,
                       java.lang.String key,
                       org.apache.xerces.xni.parser.XMLParseException fatalError)
                throws org.apache.xerces.xni.XNIException
Description copied from interface: org.apache.xerces.xni.parser.XMLErrorHandler
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.

Specified by:
fatalError in interface org.apache.xerces.xni.parser.XMLErrorHandler