public class DefaultValidationExceptionHandler extends ValidationExceptionHandlerImpl
ValidationExceptionHandler
This creates a ServiceException from the ValidationException, but will include all the
ValidationException#getCausingExceptions()
messages as part of the message.
In the adapter configuration file this class is aliased as json-schema-validation-exception-default which is the preferred alternative to the fully qualified classname when building your configuration.
log
Constructor and Description |
---|
DefaultValidationExceptionHandler() |
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
buildExceptionMessage(org.everit.json.schema.ValidationException exc) |
void |
handle(org.everit.json.schema.ValidationException exc,
AdaptrisMessage msg) |
public void handle(org.everit.json.schema.ValidationException exc, AdaptrisMessage msg) throws ServiceException
ServiceException
protected java.lang.String buildExceptionMessage(org.everit.json.schema.ValidationException exc)