public static class SchemaFactoryImpl.ErrorReporterWrappingErrorHandler extends java.lang.Object implements ErrorReporter
Constructor and Description |
---|
ErrorReporterWrappingErrorHandler(org.xml.sax.ErrorHandler handler)
Create an ErrorListener that wraps a supplied SAX ErrorHandler
|
Modifier and Type | Method and Description |
---|---|
org.xml.sax.ErrorHandler |
getErrorHandler()
Get the wrapped SAX ErrorHandler
|
void |
report(XmlProcessingError error)
Report an error.
|
public ErrorReporterWrappingErrorHandler(org.xml.sax.ErrorHandler handler)
handler
- the SAX error handler to be wrappedpublic void report(XmlProcessingError error)
ErrorReporter
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.
report
in interface ErrorReporter
error
- details of the error to be reportedpublic org.xml.sax.ErrorHandler getErrorHandler()
Copyright (c) 2004-2022 Saxonica Limited. All rights reserved.