Package com.norconex.commons.lang.xml
Class ErrorHandlerFailer
- java.lang.Object
-
- com.norconex.commons.lang.xml.ErrorHandlerFailer
-
- All Implemented Interfaces:
ErrorHandler
public class ErrorHandlerFailer extends Object implements ErrorHandler
Fails upon encountering first XML validation errors by throwing anXMLValidationException. as error.- Since:
- 2.0.0
- Author:
- Pascal Essiembre
-
-
Constructor Summary
Constructors Constructor Description ErrorHandlerFailer(Class<?> clazz)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiderror(SAXParseException e)voidfatalError(SAXParseException e)voidwarning(SAXParseException e)
-
-
-
Constructor Detail
-
ErrorHandlerFailer
public ErrorHandlerFailer(Class<?> clazz)
-
-
Method Detail
-
warning
public void warning(SAXParseException e) throws SAXException
- Specified by:
warningin interfaceErrorHandler- Throws:
SAXException
-
error
public void error(SAXParseException e) throws SAXException
- Specified by:
errorin interfaceErrorHandler- Throws:
SAXException
-
fatalError
public void fatalError(SAXParseException e) throws SAXException
- Specified by:
fatalErrorin interfaceErrorHandler- Throws:
SAXException
-
-