@FunctionalInterface public interface ErrorReporter
The error or warning is reported in the form of an
unlike the JAXP
ErrorHandler it is possible
to report errors without expensively construction an exception object.
accept() method does not throw any checked
exceptions. It may however, throw an
that processing is to be terminated without looking for further errors.
A warning condition is notified using an
isWarning() property is true.
void report(XmlProcessingError error)
The application can safely ignore the error if
The application can indicate to Saxon that the error should be considered fatal
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
error- details of the error to be reported
Copyright (c) 2004-2021 Saxonica Limited. All rights reserved.