public class ErrorReporterToListener extends java.lang.Object implements ErrorReporter
ErrorListener.
Warning conditions that do not prevent execution of the stylesheet or query are
reported to the ErrorListener.warning(TransformerException) method.
Error conditions that do prevent execution of the stylesheet or query are
reported to the ErrorListener.fatalError(TransformerException) method.
The ErrorListener.error(TransformerException) method is never called,
because the concept of "recoverable errors" is no longer present in the XSLT
specification.
| Constructor and Description |
|---|
ErrorReporterToListener(javax.xml.transform.ErrorListener listener)
Create an error reporter that wraps a JAXP
ErrorListener |
| Modifier and Type | Method and Description |
|---|---|
javax.xml.transform.ErrorListener |
getErrorListener()
Get the JAXP
ErrorListener wrapped by this error reporter |
void |
report(XmlProcessingError error)
Receive notification of a error or warning
|
public ErrorReporterToListener(javax.xml.transform.ErrorListener listener)
ErrorListenerlistener - the wrapped ErrorListener. Must not be null.public javax.xml.transform.ErrorListener getErrorListener()
ErrorListener wrapped by this error reporterErrorListenerpublic void report(XmlProcessingError error)
report in interface ErrorReportererror - information about the error or warningCopyright (c) 2004-2021 Saxonica Limited. All rights reserved.