| org.apache.xerces.framework.XMLErrorReporter
All known Subclasses: org.apache.xerces.framework.XMLParser,
XMLErrorReporter | public interface XMLErrorReporter (Code) | | Error handling
version: $Id: XMLErrorReporter.java,v 1.2 2000/04/04 21:14:21 andyc Exp $ |
Method Summary | |
public Locator | getLocator() Get the default locator to use when reporting errors. | public void | reportError(Locator locator, String errorDomain, int majorCode, int minorCode, Object args, int errorType) Report an error detected by a component of the XML parser. |
ERRORTYPE_FATAL_ERROR | final public static int ERRORTYPE_FATAL_ERROR(Code) | | Fatal error type.
|
ERRORTYPE_RECOVERABLE_ERROR | final public static int ERRORTYPE_RECOVERABLE_ERROR(Code) | | Error type.
|
ERRORTYPE_WARNING | final public static int ERRORTYPE_WARNING(Code) | | Warning type.
|
getLocator | public Locator getLocator()(Code) | | Get the default locator to use when reporting errors.
|
reportError | public void reportError(Locator locator, String errorDomain, int majorCode, int minorCode, Object args, int errorType) throws Exception(Code) | | Report an error detected by a component of the XML parser.
In a typical implementation of this interface, this method
would call the error handler registered by the user with
the appropriate error information.
Parameters: locator - Used to determine the location of the error. Parameters: errorDomain - The error domain of the error. Parameters: majorCode - The major key for the message text. Parameters: minorCode - The minor key for the message text. Parameters: args - The arguments to be used as replacement textin the message created. Parameters: errorType - The type of error (ERRORTYPE_WARNING, ERRORTYPE_RECOVERABLE_ERROR, ERRORTYPE_FATAL_ERROR). See Also: XMLErrorReporter.ERRORTYPE_WARNING See Also: XMLErrorReporter.ERRORTYPE_RECOVERABLE_ERROR See Also: XMLErrorReporter.ERRORTYPE_FATAL_ERROR exception: Exception - Thrown if the parser should not continueto the error being handled. |
|
|