Class XMLValidateTask.ValidatorErrorHandler
java.lang.Object
org.apache.tools.ant.taskdefs.optional.XMLValidateTask.ValidatorErrorHandler
- All Implemented Interfaces:
ErrorHandler
- Enclosing class:
XMLValidateTask
ValidatorErrorHandler role :
- log SAX parse exceptions,
- remember if an error occurred
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
error
(SAXParseException exception) receive notification of a recoverable errorvoid
fatalError
(SAXParseException exception) record a fatal errorboolean
did an error happen during last parsing ?void
initialises the classvoid
warning
(SAXParseException exception) receive notification of a warning
-
Field Details
-
currentFile
-
lastErrorMessage
-
failed
protected boolean failed
-
-
Constructor Details
-
ValidatorErrorHandler
protected ValidatorErrorHandler()
-
-
Method Details
-
init
-
getFailure
public boolean getFailure()did an error happen during last parsing ?- Returns:
- did an error happen during last parsing ?
-
fatalError
record a fatal error- Specified by:
fatalError
in interfaceErrorHandler
- Parameters:
exception
- the fatal error
-
error
receive notification of a recoverable error- Specified by:
error
in interfaceErrorHandler
- Parameters:
exception
- the error
-
warning
receive notification of a warning- Specified by:
warning
in interfaceErrorHandler
- Parameters:
exception
- the warning
-