Package com.thaiopensource.xml.sax
Class DraconianErrorHandler
- java.lang.Object
-
- com.thaiopensource.xml.sax.DraconianErrorHandler
-
- All Implemented Interfaces:
org.xml.sax.ErrorHandler
public class DraconianErrorHandler extends java.lang.Object implements org.xml.sax.ErrorHandlerAnErrorHandlerimplementing 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(org.xml.sax.SAXParseException e)voidfatalError(org.xml.sax.SAXParseException e)voidwarning(org.xml.sax.SAXParseException e)
-
-
-
Method Detail
-
warning
public void warning(org.xml.sax.SAXParseException e) throws org.xml.sax.SAXException- Specified by:
warningin interfaceorg.xml.sax.ErrorHandler- Throws:
org.xml.sax.SAXException
-
error
public void error(org.xml.sax.SAXParseException e) throws org.xml.sax.SAXException- Specified by:
errorin interfaceorg.xml.sax.ErrorHandler- Throws:
org.xml.sax.SAXException
-
fatalError
public void fatalError(org.xml.sax.SAXParseException e) throws org.xml.sax.SAXException- Specified by:
fatalErrorin interfaceorg.xml.sax.ErrorHandler- Throws:
org.xml.sax.SAXException
-
-