Class ValidatorException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.vertx.openapi.validation.ValidatorException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
SchemaValidationException
A ValidatorException is thrown, if the validation of a request or response fails. The validation can fail for
formal reasons, such as the wrong format for a parameter or the absence of a required parameter. However,
validation can of course also fail because the content does not match the defined schema. In this case
have a look into
SchemaValidationException.- See Also:
-
Constructor Summary
ConstructorsModifierConstructorDescriptionValidatorException(String message, ValidatorErrorType type) protectedValidatorException(String message, ValidatorErrorType type, Throwable cause) -
Method Summary
Modifier and TypeMethodDescriptionstatic ValidatorExceptioncreateCantDecodeValue(Parameter parameter) static ValidatorExceptioncreateInvalidValueFormat(Parameter parameter) static ValidatorExceptioncreateMissingRequiredParameter(Parameter parameter) static ValidatorExceptioncreateOperationIdInvalid(String operationId) static ValidatorExceptioncreateOperationNotFound(HttpMethod method, String path) static ValidatorExceptioncreateResponseNotFound(int statusCode, String operation) static ValidatorExceptioncreateUnsupportedTransformation(Style style, SchemaType schemaType) static ValidatorExceptioncreateUnsupportedValueFormat(Parameter parameter) type()Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ValidatorException
-
ValidatorException
-
-
Method Details
-
createMissingRequiredParameter
-
createInvalidValueFormat
-
createUnsupportedValueFormat
-
createUnsupportedTransformation
public static ValidatorException createUnsupportedTransformation(Style style, SchemaType schemaType) -
createCantDecodeValue
-
createOperationIdInvalid
-
createOperationNotFound
-
createResponseNotFound
-
type
-