ErrorInfo

fun ErrorInfo(errorCode: Int, errorMessage: String)

Create ErrorInfo from error code and corresponding message. The status will be set to #CLIENT_ERROR.

Parameters

errorCode

Error code.

errorMessage

Error description.

fun ErrorInfo(errorStatus: Int, errorCode: Int, errorMessage: String)

Create ErrorInfo from status, error code and corresponding message.

Parameters

errorStatus

Error status code.

errorCode

Error unique code.

errorMessage

Error description.

fun ErrorInfo(reason: ErrorReason = ErrorReason.Unknown, status: Int = 0, code: Int = 0, message: String = "")

Create ErrorInfo from reason, status, error code and corresponding message.

Parameters

reason

Error category as a ErrorReason.

status

Error category as a classifier. Local client errors get status 0, network related errors have their HTTP error code as a status.

code

Unique code for this error.

message

Error message.