public abstract class AbstractSAXErrorHandler extends Object implements ErrorHandler
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractSAXErrorHandler()
Constructor without parent error handler.
|
|
AbstractSAXErrorHandler(ErrorHandler aWrappedErrorHandler)
Constructor that takes a parent error handler to be called.
|
| Modifier and Type | Method and Description |
|---|---|
void |
error(SAXParseException ex) |
void |
fatalError(SAXParseException ex) |
static IResourceError |
getSaxParseError(EErrorLevel eErrorLevel,
SAXParseException ex)
Utility method to convert a
SAXParseException into an
IResourceError. |
ErrorHandler |
getWrappedErrorHandler() |
protected abstract void |
internalLog(EErrorLevel eErrorLevel,
SAXParseException aException) |
String |
toString() |
void |
warning(SAXParseException ex) |
protected AbstractSAXErrorHandler()
public AbstractSAXErrorHandler(@Nullable ErrorHandler aWrappedErrorHandler)
aWrappedErrorHandler - The parent error handler. May be null.@Nullable public ErrorHandler getWrappedErrorHandler()
null.@Nonnull public static IResourceError getSaxParseError(@Nonnull EErrorLevel eErrorLevel, @Nonnull SAXParseException ex)
SAXParseException into an
IResourceError.eErrorLevel - The occurred error level. May not be null.ex - The exception to convert. May not be null.IResourceError representation. Never null.protected abstract void internalLog(@Nonnull EErrorLevel eErrorLevel, @Nonnull SAXParseException aException)
public final void warning(SAXParseException ex) throws SAXException
warning in interface ErrorHandlerSAXExceptionpublic final void error(SAXParseException ex) throws SAXException
error in interface ErrorHandlerSAXExceptionpublic final void fatalError(SAXParseException ex) throws SAXException
fatalError in interface ErrorHandlerSAXExceptionCopyright © 2006–2015 phloc systems. All rights reserved.