public class ValidatorException extends RuntimeException
Constructor and Description |
---|
ValidatorException(String message,
ValidatorErrorType type) |
ValidatorException(String message,
ValidatorErrorType type,
Throwable cause) |
Modifier and Type | Method and Description |
---|---|
static ValidatorException |
createCantDecodeValue(Parameter parameter) |
static ValidatorException |
createInvalidValue(Parameter parameter,
JsonSchemaValidationException cause) |
static ValidatorException |
createInvalidValueBody(JsonSchemaValidationException cause) |
static ValidatorException |
createInvalidValueFormat(Parameter parameter) |
static ValidatorException |
createMissingRequiredParameter(Parameter parameter) |
static ValidatorException |
createOperationIdInvalid(String operationId) |
static ValidatorException |
createOperationNotFound(HttpMethod method,
String path) |
static ValidatorException |
createResponseNotFound(int statusCode,
String operation) |
static ValidatorException |
createUnsupportedValueFormat(Parameter parameter) |
ValidatorErrorType |
type() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public ValidatorException(String message, ValidatorErrorType type)
public ValidatorException(String message, ValidatorErrorType type, Throwable cause)
public static ValidatorException createMissingRequiredParameter(Parameter parameter)
public static ValidatorException createInvalidValueFormat(Parameter parameter)
public static ValidatorException createUnsupportedValueFormat(Parameter parameter)
public static ValidatorException createCantDecodeValue(Parameter parameter)
public static ValidatorException createInvalidValue(Parameter parameter, JsonSchemaValidationException cause)
public static ValidatorException createInvalidValueBody(JsonSchemaValidationException cause)
public static ValidatorException createOperationIdInvalid(String operationId)
public static ValidatorException createOperationNotFound(HttpMethod method, String path)
public static ValidatorException createResponseNotFound(int statusCode, String operation)
public ValidatorErrorType type()
Copyright © 2023 Eclipse. All rights reserved.