ErrorInfo
data class ErrorInfo( val reason: ErrorReason = Unknown, val status: Int = 0, val code: Int = 0, val message: String = "", val description: String = "")
Content copied to clipboard
Representation of an Error object.
This object encapsulates information about an SDK error and is passed around to listener callbacks.
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.