CRUDError

data class CRUDError(val code: Int, val message: String, val type: String) : Record(source)

Error model of the API operations

Constructors

Link copied to clipboard
fun CRUDError(status: HttpStatus, message: String)

Constructor to create a CRUDError with given data

Link copied to clipboard
fun CRUDError(code: Int, message: String, type: String)

Properties

Link copied to clipboard

Numeric code matching the HTTP status code of the response this error should produce

Link copied to clipboard

Error message describing what went wrong

Link copied to clipboard

Error type matching the HTTP status of the response this error should produce