Package com.norconex.commons.lang.xml
Class ErrorHandlerCapturer
- java.lang.Object
-
- com.norconex.commons.lang.xml.ErrorHandlerCapturer
-
- All Implemented Interfaces:
ErrorHandler
public class ErrorHandlerCapturer extends Object implements ErrorHandler
Collects XML validation errors.- Since:
- 2.0.0
- Author:
- Pascal Essiembre
-
-
Constructor Summary
Constructors Constructor Description ErrorHandlerCapturer()ErrorHandlerCapturer(Class<?> clazz)ErrorHandlerCapturer(Class<?> clazz, List<XMLValidationError> errors)ErrorHandlerCapturer(List<XMLValidationError> errors)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intclear()voiderror(SAXParseException e)voidfatalError(SAXParseException e)List<XMLValidationError>getErrors()voidwarning(SAXParseException e)
-
-
-
Constructor Detail
-
ErrorHandlerCapturer
public ErrorHandlerCapturer()
-
ErrorHandlerCapturer
public ErrorHandlerCapturer(List<XMLValidationError> errors)
-
ErrorHandlerCapturer
public ErrorHandlerCapturer(Class<?> clazz)
-
ErrorHandlerCapturer
public ErrorHandlerCapturer(Class<?> clazz, List<XMLValidationError> errors)
-
-
Method Detail
-
getErrors
public List<XMLValidationError> getErrors()
-
clear
public int clear()
-
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
-
-