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 com.helger.commons.error.IResourceError |
getSaxParseError(com.helger.commons.error.IErrorLevel aErrorLevel,
SAXParseException ex)
Utility method to convert a
SAXParseException into an
IResourceError. |
ErrorHandler |
getWrappedErrorHandler() |
protected abstract void |
internalLog(com.helger.commons.error.IErrorLevel aErrorLevel,
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 com.helger.commons.error.IResourceError getSaxParseError(@Nonnull com.helger.commons.error.IErrorLevel aErrorLevel, @Nonnull SAXParseException ex)
SAXParseException into an
IResourceError.aErrorLevel - 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 com.helger.commons.error.IErrorLevel aErrorLevel, @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 © 2014–2016 Philip Helger. All rights reserved.