public class SchemaValidationException extends ValidatorException
ValidatorException
and is thrown, if the validation of a
request or response fails due to a schema violation. It offers access to the related OutputUnit, which can be used to
gain more information about the validation error.Constructor and Description |
---|
SchemaValidationException(String message,
ValidatorErrorType type,
OutputUnit outputUnit,
Throwable cause) |
Modifier and Type | Method and Description |
---|---|
static SchemaValidationException |
createInvalidValueParameter(Parameter parameter,
OutputUnit outputUnit,
JsonSchemaValidationException cause) |
static SchemaValidationException |
createInvalidValueRequestBody(OutputUnit outputUnit,
JsonSchemaValidationException cause) |
static SchemaValidationException |
createInvalidValueResponseBody(OutputUnit outputUnit,
JsonSchemaValidationException cause) |
OutputUnit |
getOutputUnit()
Returns the related OutputUnit of the validation error.
|
createCantDecodeValue, createInvalidValueFormat, createMissingRequiredParameter, createOperationIdInvalid, createOperationNotFound, createResponseNotFound, createUnsupportedValueFormat, type
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public SchemaValidationException(String message, ValidatorErrorType type, OutputUnit outputUnit, Throwable cause)
public static SchemaValidationException createInvalidValueParameter(Parameter parameter, OutputUnit outputUnit, JsonSchemaValidationException cause)
public static SchemaValidationException createInvalidValueRequestBody(OutputUnit outputUnit, JsonSchemaValidationException cause)
public static SchemaValidationException createInvalidValueResponseBody(OutputUnit outputUnit, JsonSchemaValidationException cause)
public OutputUnit getOutputUnit()
Copyright © 2024 Eclipse. All rights reserved.