Package com.saxonica.ee.jaxp
Class SchemaFactoryImpl.ErrorReporterWrappingErrorHandler
java.lang.Object
com.saxonica.ee.jaxp.SchemaFactoryImpl.ErrorReporterWrappingErrorHandler
- All Implemented Interfaces:
ErrorReporter
- Enclosing class:
SchemaFactoryImpl
public static class SchemaFactoryImpl.ErrorReporterWrappingErrorHandler
extends Object
implements ErrorReporter
A JAXP ErrorReporter that wraps a SAX ErrorHandler
-
Constructor Summary
ConstructorsConstructorDescriptionCreate an ErrorListener that wraps a supplied SAX ErrorHandler -
Method Summary
Modifier and TypeMethodDescriptionGet the wrapped SAX ErrorHandlervoid
report
(XmlProcessingError error) Report an error.
-
Constructor Details
-
ErrorReporterWrappingErrorHandler
Create an ErrorListener that wraps a supplied SAX ErrorHandler- Parameters:
handler
- the SAX error handler to be wrapped
-
-
Method Details
-
report
Description copied from interface:ErrorReporter
Report an error. This method is called by Saxon when an error needs to be reported to the calling application.The application can safely ignore the error if
XmlProcessingError.isWarning()
returns true.The application can indicate to Saxon that the error should be considered fatal by calling
XmlProcessingError.setTerminationMessage(String)
. The precise effect of marking an error as fatal is not defined, and may depend on the circumstances; in some cases it may have no effect. If a dynamic error is marked as fatal then an attempt to catch the error using a try/catch construct in XSLT or XQuery will generally be unsuccessful.- Specified by:
report
in interfaceErrorReporter
- Parameters:
error
- details of the error to be reported
-
getErrorHandler
Get the wrapped SAX ErrorHandler- Returns:
- the wrapped SAX ErrorHandler
-