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
AnErrorHandler
implementing 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 void
error(SAXParseException e)
void
fatalError(SAXParseException e)
void
warning(SAXParseException e)
-
-
-
Method Detail
-
warning
public void warning(SAXParseException e) throws SAXException
- Specified by:
warning
in interfaceErrorHandler
- Throws:
SAXException
-
error
public void error(SAXParseException e) throws SAXException
- Specified by:
error
in interfaceErrorHandler
- Throws:
SAXException
-
fatalError
public void fatalError(SAXParseException e) throws SAXException
- Specified by:
fatalError
in interfaceErrorHandler
- Throws:
SAXException
-
-