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 java.lang.Object implements ErrorReporter
A JAXP ErrorReporter that wraps a SAX ErrorHandler
-
-
Constructor Summary
Constructors Constructor Description ErrorReporterWrappingErrorHandler(org.xml.sax.ErrorHandler handler)
Create an ErrorListener that wraps a supplied SAX ErrorHandler
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.xml.sax.ErrorHandler
getErrorHandler()
Get the wrapped SAX ErrorHandlervoid
report(XmlProcessingError error)
Report an error.
-
-
-
Method Detail
-
report
public void report(XmlProcessingError error)
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
public org.xml.sax.ErrorHandler getErrorHandler()
Get the wrapped SAX ErrorHandler- Returns:
- the wrapped SAX ErrorHandler
-
-