ServerError

data class ServerError(val code: Int, val message: String? = null, val messages: List<String>? = null) : ApiError

ServerError when the server responded with an specific error domain.

Parameters

code

Int the error code.

message

String? the error message. Is null by default.

messages

List<String>? the error messages. Is null by default.

Constructors

Link copied to clipboard
constructor(code: Int, message: String? = null, messages: List<String>? = null)

Properties

Link copied to clipboard
val code: Int
Link copied to clipboard
val message: String? = null
Link copied to clipboard
val messages: List<String>? = null