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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiderror(SAXParseException exception) receive notification of a recoverable errorvoidfatalError(SAXParseException exception) record a fatal errorbooleandid an error happen during last parsing ?voidinitialises the classvoidwarning(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:
fatalErrorin interfaceErrorHandler- Parameters:
exception- the fatal error
-
error
receive notification of a recoverable error- Specified by:
errorin interfaceErrorHandler- Parameters:
exception- the error
-
warning
receive notification of a warning- Specified by:
warningin interfaceErrorHandler- Parameters:
exception- the warning
-