| java.lang.Object | |||
| ↳ | java.lang.Throwable | ||
| ↳ | java.lang.Exception | ||
| ↳ | com.nexmo.sdk.conversation.client.event.NexmoAPIError | ||
Nexmo API exception that can be caught and handled, encapsulates following information:
| Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| String | AUDIO_ALREADY_IN_PROGRESS | ||||||||||
| String | AUDIO_GENERAL_CALL_ERROR | ||||||||||
| String | AUDIO_MISSING_PERMISSIONS | ||||||||||
| String | CONNECT_ALREADY_IN_PROGRESS | ||||||||||
| String | DOWNLOAD_FAILURE | ||||||||||
| String | IMAGE_DELETE_FAILURE | ||||||||||
| String | INVALID_ACTION | ||||||||||
| String | INVALID_PARAMS | ||||||||||
| String | MISSING_PARAMS | ||||||||||
| String | NO_USER | Local error type due to pre-validations. | |||||||||
| String | PERMISSION_REQUIRED | ||||||||||
| String | UNEXPECTED_RESPONSE | ||||||||||
| String | UPLOAD_FAILURE | ||||||||||
| String | USER_ALREADY_LOGGED_IN | ||||||||||
| Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| public static final String | TAG | ||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| NexmoAPIError(String type, String message) | |||||||||||
| NexmoAPIError(String type, String conversationId, String message) | |||||||||||
| NexmoAPIError(String rid, String type, String conversationId, String message) | |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| static NexmoAPIError | alreadyConnecting() | ||||||||||
| static NexmoAPIError | audioAlreadyInProgress() | ||||||||||
| static NexmoAPIError | audioGeneralCallError(String description) | ||||||||||
| static NexmoAPIError | audioMissingPermissions() | ||||||||||
| static NexmoAPIError |
downloadFailure(String conversationId)
Image event failures
| ||||||||||
| boolean | equals(Object o) | ||||||||||
| static void | forward(RequestHandler listener, NexmoAPIError error) | ||||||||||
| String |
getConversationId()
Returns the conversation id associated with the request.
| ||||||||||
| String |
getRid()
Returns the request Id for which the error was triggered.
| ||||||||||
| String |
getType()
Returns the type of error.
| ||||||||||
| int | hashCode() | ||||||||||
| static NexmoAPIError | invalidAction(String conversationId, String message) | ||||||||||
| static NexmoAPIError | missingParams() | ||||||||||
| static NexmoAPIError |
noUserLoggedIn()
Predefined local errors.
| ||||||||||
| static NexmoAPIError | noUserLoggedInForConversation(String conversationId) | ||||||||||
| static NexmoAPIError | onUserAlreadyLoggedIn() | ||||||||||
| static NexmoAPIError | permissionRequired(String conversationId) | ||||||||||
| String | toString() | ||||||||||
| static NexmoAPIError |
unexpectedResponse(String rid, String conversationId)
commonly used when received data cannot be parsed.
| ||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Throwable
| |||||||||||
From class
java.lang.Object
| |||||||||||
Local error type due to pre-validations.
Returns the conversation id associated with the request.
Returns the request Id for which the error was triggered.
Returns the type of error.
Predefined local errors. Local errors will never have a rid because they never reach the network.
commonly used when received data cannot be parsed.