public static enum ValidationException.ErrorType extends Enum<ValidationException.ErrorType>
ValidationException.type()
Enum Constant and Description |
---|
DESERIALIZATION_ERROR
Error during deserializaton with rule provided
|
EMPTY_VALUE
Parameter found but with empty value
|
FILE_NOT_FOUND
Expected file not found
|
JSON_INVALID
Json doesn't match the provided schema
|
JSON_NOT_PARSABLE
Json can't be parsed
|
NO_MATCH
The provided value not match with ParameterTypeValidator rules
|
NOT_FOUND
Parameter not found in request
|
OBJECT_FIELD_NOT_FOUND
Object field declared as required in
ObjectTypeValidator not found |
UNEXPECTED_ARRAY
It was expected a single value, but found in request an array
|
UNEXPECTED_ARRAY_SIZE
Expected an array size between parameters configured in
ArrayTypeValidator |
UNEXPECTED_SINGLE_STRING
It was expected an array, but found in request a single value
|
WRONG_CONTENT_TYPE
Wrong Content-Type header
|
XML_INVALID
XML doesn't match the provided schema
|
Modifier and Type | Method and Description |
---|---|
static ValidationException.ErrorType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ValidationException.ErrorType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ValidationException.ErrorType NO_MATCH
public static final ValidationException.ErrorType NOT_FOUND
public static final ValidationException.ErrorType UNEXPECTED_ARRAY
public static final ValidationException.ErrorType UNEXPECTED_SINGLE_STRING
public static final ValidationException.ErrorType FILE_NOT_FOUND
public static final ValidationException.ErrorType WRONG_CONTENT_TYPE
public static final ValidationException.ErrorType EMPTY_VALUE
public static final ValidationException.ErrorType UNEXPECTED_ARRAY_SIZE
ArrayTypeValidator
public static final ValidationException.ErrorType DESERIALIZATION_ERROR
public static final ValidationException.ErrorType OBJECT_FIELD_NOT_FOUND
ObjectTypeValidator
not foundpublic static final ValidationException.ErrorType JSON_NOT_PARSABLE
public static final ValidationException.ErrorType JSON_INVALID
public static final ValidationException.ErrorType XML_INVALID
public static ValidationException.ErrorType[] values()
for (ValidationException.ErrorType c : ValidationException.ErrorType.values()) System.out.println(c);
public static ValidationException.ErrorType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2024 Eclipse. All rights reserved.