Package com.thaiopensource.xml.sax
Class DraconianErrorHandler
- java.lang.Object
-
- com.thaiopensource.xml.sax.DraconianErrorHandler
-
- All Implemented Interfaces:
ErrorHandler
public class DraconianErrorHandler extends Object implements ErrorHandler
AnErrorHandlerimplementing a brutal error handling policy. Fatal errors and errors are handled by throwing the exception. Warnings are ignored.- Author:
- James Clark
-
-
Constructor Summary
Constructors Constructor Description DraconianErrorHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiderror(SAXParseException e)voidfatalError(SAXParseException e)voidwarning(SAXParseException e)
-
-
-
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
-
-