apidocs / com.srv4pos.server.api.infrastructure.exceptions.enums / ValueNotValidErrorType

ValueNotValidErrorType

enum class ValueNotValidErrorType

Enum describes error codes corresponding to com.srv4pos.server.api.exceptions.ValueNotValidJsonException.

Enum Values

SHOULD_NOT_BE_NULL

Occurs if non-null constraint violated.

SHOULD_MATCH_PATTERN

Occurs if regex violated.

SIZE_SHOULD_BE_EQUAL_EXACTLY

Says that size of the field in characters should be equal to limiting number.

SIZE_SHOULD_BE_LESS_THEN

Says that size of the field in characters should be less then limiting number.

SIZE_SHOULD_BE_MORE_THEN

Says that size of the field in characters should be more or equal then limiting number.

SIZE_SHOULD_BE_IN_RANGE

Says that size of the field in characters should be in some range.

VALUE_SHOULD_BE_GREATER_THEN

Says that numerical value should be greater or equal then some limiting value.

VALUE_SHOULD_BE_LESS_THEN

Says that numerical value should be less or equal then some limiting value.

VALUE_SHOULD_NOT_BE_NEGATIVE

It is a special case of com.srv4pos.server.api.infrastructure.exceptions.enums.ValueNotValidErrorType.VALUE_SHOULD_BE_GREATER_THEN. Says that value should be positive.

VALUE_IN_MAP_SHOULD_NOT_BE_NEGATIVE

Says that all values in map should be positive.

APPLICATION_NAME_AND_VERSION_SHOULD_CONTAIN_SE_AND_VERSION

Says that application name and version should contain SE and version

SHOULD_MATCH_CORPORATE_ID_VALIDATION_SWEDISH

Says that seller's corporate id failed to pass swedish validation.

SHOULD_MATCH_CORPORATE_ID_VALIDATION_LUHN

Says that seller's corporate id failed to pass Luhn-algorithm validation.

SHOULD_BE_BASE64_ENCODED

Says that value can't be decoded from base64 format.

MAX_UPLOAD_SIZE_EXCEEDED

Says that max uploading file size is exceeded.

SHOULD_BE_CONSISTENT_WITH_ANOTHER_FIELD

Says that value of field related to value of another field.