Package com.helger.xml.sax
Class AbstractSAXErrorHandler
java.lang.Object
com.helger.xml.sax.AbstractSAXErrorHandler
- All Implemented Interfaces:
ISAXErrorHandler,ErrorHandler
- Direct Known Subclasses:
CollectingSAXErrorHandler,DoNothingSAXErrorHandler,LoggingSAXErrorHandler
java.xml error handler base class.
- Author:
- Philip Helger
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedConstructor without parent error handler. -
Method Summary
Modifier and TypeMethodDescriptionfinal voidfinal voidstatic com.helger.commons.error.IErrorgetSaxParseError(com.helger.commons.error.level.IErrorLevel aErrorLevel, SAXParseException ex) Utility method to convert aSAXParseExceptioninto anIError.protected abstract voidinternalLog(com.helger.commons.error.level.IErrorLevel aErrorLevel, SAXParseException aException) toString()final voidMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.helger.xml.sax.ISAXErrorHandler
andThen
-
Constructor Details
-
AbstractSAXErrorHandler
protected AbstractSAXErrorHandler()Constructor without parent error handler.
-
-
Method Details
-
getSaxParseError
@Nonnull public static com.helger.commons.error.IError getSaxParseError(@Nonnull com.helger.commons.error.level.IErrorLevel aErrorLevel, @Nonnull SAXParseException ex) Utility method to convert aSAXParseExceptioninto anIError.- Parameters:
aErrorLevel- The occurred error level. May not benull.ex- The exception to convert. May not benull.- Returns:
- The
IErrorrepresentation. Nevernull.
-
internalLog
protected abstract void internalLog(@Nonnull com.helger.commons.error.level.IErrorLevel aErrorLevel, @Nonnull SAXParseException aException) -
warning
- Specified by:
warningin interfaceErrorHandler- Throws:
SAXException
-
error
- Specified by:
errorin interfaceErrorHandler- Throws:
SAXException
-
fatalError
- Specified by:
fatalErrorin interfaceErrorHandler- Throws:
SAXException
-
toString
-