public class SMError
extends java.lang.Error
implements java.io.Serializable
Modifier and Type | Class and Description |
---|---|
static class |
SMError.Domain |
static class |
SMError.ErrorDescription |
static class |
SMError.ErrorType |
Modifier and Type | Field and Description |
---|---|
java.lang.String |
description |
java.lang.String |
domain |
int |
errorCode |
Constructor and Description |
---|
SMError(java.lang.String domain,
SMError.ErrorType errorType,
java.lang.Exception exception,
java.lang.String description)
The error object returned by SMFeedbackActivity in onActivityResult (see error codes below) – will be nil if survey was completed successfully.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDescription() |
java.lang.String |
getDomain() |
int |
getErrorCode() |
java.lang.Exception |
getException() |
static SMError |
sdkClientErrorFromCode(SMError.ErrorType errorType,
java.lang.Exception exception) |
static SMError |
sdkServerErrorFromCode(SMError.ErrorType errorType,
java.lang.Exception exception) |
public java.lang.String description
public java.lang.String domain
public int errorCode
public SMError(java.lang.String domain, SMError.ErrorType errorType, java.lang.Exception exception, java.lang.String description)
Error | Code | Description |
---|---|---|
ERROR_CODE_TOKEN | 1 | Could not retrieve your respondent. Be sure you're using an SDK Collector. |
ERROR_CODE_BAD_CONNECTION | 2 | There was an error connecting to the server. |
ERROR_CODE_RESPONSE_PARSE_FAILED | 3 | There was an error parsing the response from the server. |
ERROR_CODE_COLLECTOR_CLOSED | 4 | The collector for this survey has been closed. |
ERROR_CODE_RETRIEVING_RESPONSE | 5 | There was a problem retrieving the user's response to this survey. |
ERROR_CODE_SURVEY_DELETED | 6 | This survey has been deleted. |
ERROR_CODE_RESPONSE_LIMIT_HIT | 7 | Response limit exceeded for your plan. Upgrade to access more responses through the SDK. |
ERROR_CODE_RESPONDENT_EXITED_SURVEY | 8 | The user canceled out of the survey. |
ERROR_CODE_NONEXISTENT_LINK | 9 | Custom link no longer exists. |
ERROR_CODE_INTERNAL_SERVER_ERROR | 10 | Internal server error. |
Error | Code | Description |
---|---|---|
ERROR_CODE_USER_CANCELED | 1 | The user canceled out of the survey. |
public java.lang.String getDescription()
public java.lang.String getDomain()
public int getErrorCode()
public java.lang.Exception getException()
public static SMError sdkClientErrorFromCode(SMError.ErrorType errorType, java.lang.Exception exception)
public static SMError sdkServerErrorFromCode(SMError.ErrorType errorType, java.lang.Exception exception)