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

Unique twilio code for this error. See also: Error and Warning Dictionary

errorMessage

Human readable description for the status property.


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

Create ErrorInfo from status, error code and corresponding message.

Parameters

errorStatus

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

errorCode

Unique twilio code for this error. See also: Error and Warning Dictionary

errorMessage

Human readable description for the status property.


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

Create ErrorInfo from status, error code and corresponding message.

Parameters

errorStatus

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

errorCode

Unique twilio code for this error. See also: Error and Warning Dictionary

errorMessage

Human readable description for the status property.

errorDescription

Human readable description for the code property.


fun ErrorInfo(    reason: ErrorReason = Unknown,     status: Int = 0,     code: Int = 0,     message: String = "",     description: 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 twilio code for this error. See also: Error and Warning Dictionary

message

Human readable description for the status property.

description

Human readable description for the code property.