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 SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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
- 
failedprotected boolean failed
 
- 
- 
Constructor Details- 
ValidatorErrorHandlerprotected ValidatorErrorHandler()
 
- 
- 
Method Details- 
initinitialises the class- Parameters:
- file- file used
 
- 
getFailurepublic boolean getFailure()did an error happen during last parsing ?- Returns:
- did an error happen during last parsing ?
 
- 
fatalErrorrecord a fatal error- Specified by:
- fatalErrorin interface- ErrorHandler
- Parameters:
- exception- the fatal error
 
- 
errorreceive notification of a recoverable error- Specified by:
- errorin interface- ErrorHandler
- Parameters:
- exception- the error
 
- 
warningreceive notification of a warning- Specified by:
- warningin interface- ErrorHandler
- Parameters:
- exception- the warning
 
 
-