apidocs / com.srv4pos.server.api.exceptions / ValueNotValidJsonExceptionDetails

ValueNotValidJsonExceptionDetails

class ValueNotValidJsonExceptionDetails

Class that describing info about individual violation.

Also see com.srv4pos.server.api.exceptions.ValueNotValidJsonException

Constructors

<init>

ValueNotValidJsonExceptionDetails(field: String, message: String, code: ValueNotValidErrorType, params: Map<String, String?>)

Class that describing info about individual violation.

Properties

code

val code: ValueNotValidErrorType

Returns unique error code.

field

val field: String

Returns name of field that failed validation.

message

val message: String

Returns human readable message describing exception.

params

val params: Map<String, String?>

Returns additional params like actual value or violated parameters.

Companion Object Functions

of

fun of(field: String, message: String, code: ValueNotValidErrorType, params: Map<String, String?>): ValueNotValidJsonExceptionDetails