Package com.sun.xml.ws.developer
Class ValidationErrorHandler
java.lang.Object
com.sun.xml.ws.developer.ValidationErrorHandler
- All Implemented Interfaces:
ErrorHandler
- Direct Known Subclasses:
DraconianValidationErrorHandler
An
ErrorHandler to receive errors encountered during the
Validator.validate(javax.xml.transform.Source) method invocation. Specify
a custom handler in SchemaValidation, SchemaValidationFeature
to customize the error handling process during validation.- Author:
- Jitendra Kotamraju
- See Also:
-
Field Details
-
packet
-
-
Constructor Details
-
ValidationErrorHandler
protected ValidationErrorHandler()Default constructor.
-
-
Method Details
-
setPacket
Use it to communicate validation errors with the application. For e.g validation exceptions can be stored inPacket.invocationPropertiesduring request processing and can be accessed in the endpoint viaMessageContext- Parameters:
packet- for request or response message
-