public class ExceptionThrowingErrorHandler extends Object implements ErrorHandler
ErrorHandler capable of directly rethrowing the exception| Constructor and Description |
|---|
ExceptionThrowingErrorHandler()
Default constructor
|
ExceptionThrowingErrorHandler(boolean throwExceptionOnError,
boolean throwExceptionOnFatalError,
boolean throwExceptionOnWarning)
Constructor overriding default value for boolean flags
|
| Modifier and Type | Method and Description |
|---|---|
void |
error(SAXParseException exception) |
void |
fatalError(SAXParseException exception) |
void |
warning(SAXParseException exception) |
public ExceptionThrowingErrorHandler()
public ExceptionThrowingErrorHandler(boolean throwExceptionOnError,
boolean throwExceptionOnFatalError,
boolean throwExceptionOnWarning)
throwExceptionOnError - Boolean flag for 'error' category of errorsthrowExceptionOnFatalError - Boolean flag for 'fatalError' category of errorsthrowExceptionOnWarning - Boolean flag for 'warning' category of errorspublic void error(SAXParseException exception) throws SAXException
error in interface ErrorHandlerSAXExceptionpublic void fatalError(SAXParseException exception) throws SAXException
fatalError in interface ErrorHandlerSAXExceptionpublic void warning(SAXParseException exception) throws SAXException
warning in interface ErrorHandlerSAXExceptionCopyright © 2007-2015 Ikasan. All Rights Reserved.