com.ibm.xml.framework
Interface XMLErrorReporter
- All Known Implementing Classes:
- XMLParser
- public abstract interface XMLErrorReporter
Method Summary |
Locator |
getLocator()
Get the default locator to use when reporting errors. |
void |
reportError(Locator locator,
java.lang.String errorDomain,
int majorCode,
int minorCode,
java.lang.Object[] args,
int errorType)
reports an error emitted by a component of the XML parser. |
void |
setLocator(Locator locator)
Set the default locator to use when reporting errors. |
ERRORTYPE_WARNING
public static final int ERRORTYPE_WARNING
- Warning type.
ERRORTYPE_RECOVERABLE_ERROR
public static final int ERRORTYPE_RECOVERABLE_ERROR
- Error type.
ERRORTYPE_FATAL_ERROR
public static final int ERRORTYPE_FATAL_ERROR
- Fatal error type.
setLocator
public void setLocator(Locator locator)
- Set the default locator to use when reporting errors.
getLocator
public Locator getLocator()
- Get the default locator to use when reporting errors.
reportError
public void reportError(Locator locator,
java.lang.String errorDomain,
int majorCode,
int minorCode,
java.lang.Object[] args,
int errorType)
throws java.lang.Exception
- reports an error emitted 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.errorDomain
- The error domain of the error.majorCode
- The major key for the message text.minorCode
- The minor key for the message text.args
- The arguments to be used as replacement text
in the message created.errorType
- The type of error (WARNING, ERROR, FATAL_ERROR).- Throws:
- java.lang.Exception - Thrown if the parser should not continue
to the error being handled.
- See Also:
#WARNING
,
#ERROR
,
#FATAL_ERROR