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)
ErrorListener
listener
- the wrapped ErrorListener
. Must not be null.public javax.xml.transform.ErrorListener getErrorListener()
ErrorListener
wrapped by this error reporterErrorListener
public void report(XmlProcessingError error)
report
in interface ErrorReporter
error
- information about the error or warningCopyright (c) 2004-2022 Saxonica Limited. All rights reserved.