Package net.sf.saxon.lib
Class InvalidityHandlerWrappingErrorReporter
java.lang.Object
net.sf.saxon.lib.InvalidityHandlerWrappingErrorReporter
- All Implemented Interfaces:
InvalidityHandler
Interface for reporting validation errors found during validation of an instance document
against a schema.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the value to be associated with a validation exception.void
reportInvalidity
(Invalidity failure) Report a validation error found during validation of an instance document against a schemavoid
startReporting
(String systemId) At the start of a validation episode, initialize the handler
-
Constructor Details
-
InvalidityHandlerWrappingErrorReporter
-
-
Method Details
-
startReporting
At the start of a validation episode, initialize the handler- Specified by:
startReporting
in interfaceInvalidityHandler
- Parameters:
systemId
- optional; may be used to represent the destination of any report produced- Throws:
XPathException
- if initialization of the invalidity handler fails for any reason
-
reportInvalidity
Description copied from interface:InvalidityHandler
Report a validation error found during validation of an instance document against a schema- Specified by:
reportInvalidity
in interfaceInvalidityHandler
- Parameters:
failure
- details of the validation error- Throws:
XPathException
- - if the validation error cannot be reported. This is fatal and will cause the validation run to be abandoned
-
getErrorReporter
-
endReporting
Get the value to be associated with a validation exception. May return null. In the case of the InvalidityReportGenerator, this returns the XML document containing the validation report- Specified by:
endReporting
in interfaceInvalidityHandler
- Returns:
- a value (or null). This will be the value returned as the value of the variable $err:value during try/catch processing
-