Class DefaultErrorHandler
java.lang.Object
org.loboevolution.apache.xml.utils.DefaultErrorHandler
- All Implemented Interfaces:
ErrorListener
Implement SAX error handler for default reporting.
-
Constructor Summary
ConstructorDescriptionConstructor DefaultErrorHandlerDefaultErrorHandler
(boolean throwExceptionOnError) Constructor DefaultErrorHandler -
Method Summary
Modifier and TypeMethodDescriptionvoid
error
(TransformerException exception) void
fatalError
(TransformerException exception) Retrievejava.io.PrintWriter
to which errors are being directed.void
warning
(TransformerException exception)
-
Constructor Details
-
DefaultErrorHandler
public DefaultErrorHandler()Constructor DefaultErrorHandler -
DefaultErrorHandler
public DefaultErrorHandler(boolean throwExceptionOnError) Constructor DefaultErrorHandler- Parameters:
throwExceptionOnError
- boolean for throwExceptionOnError
-
-
Method Details
-
getErrorWriter
Retrievejava.io.PrintWriter
to which errors are being directed.- Returns:
- The
PrintWriter
installed via the constructor or the defaultPrintWriter
-
warning
- Specified by:
warning
in interfaceErrorListener
- Throws:
TransformerException
-
error
- Specified by:
error
in interfaceErrorListener
- Throws:
TransformerException
-
fatalError
- Specified by:
fatalError
in interfaceErrorListener
- Throws:
TransformerException
-