public abstract class BaseResult extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
STATUS_ALREADY_REQUESTED
Verify was rejected because another verification to the same number was already requested.
|
static int |
STATUS_COMMS_FAILURE
A network error occurred
|
static int |
STATUS_INTERNAL_ERROR
Verify was rejected due to a failure within the Nexmo systems.
Verify can be re-submitted after a short delay |
static int |
STATUS_INVALID_CODE
The code inserted does not match the expected value
|
static int |
STATUS_INVALID_CREDENTIALS
Verify was rejected due to receiving invalid account api key and/or secret
|
static int |
STATUS_INVALID_PARAMS
Verify was rejected due to an illegal value in one or more elements of the submission request
|
static int |
STATUS_INVALID_REQUEST
Verify was rejected because the Nexmo service was unable to handle this request.
|
static int |
STATUS_MISSING_PARAMS
Verify was rejected due to incomplete data in the submission request
|
static int |
STATUS_NO_RESPONSE
There are no matching verification requests
|
static int |
STATUS_NUMBER_BARRED
Verify was rejected because the phone number you tried to submit to has been blacklisted.
|
static int |
STATUS_OK
Verify was successfully submitted to the Nexmo service
|
static int |
STATUS_PARTNER_ACCOUNT_BARRED
Verify was rejected because your account has been barred, or has not yet been activated
|
static int |
STATUS_PARTNER_QUOTA_EXCEEDED
Verify was rejected because your pre-paid balance does not contain enough credit to handle this request.
Please top up your balance before re-submitting this request or subsequent requests. |
static int |
STATUS_THROTTLED
Verify was rejected due to exceeding the maximum throughput allowed for this account.
Verify can be re-requested after a short delay |
static int |
STATUS_TOO_MANY_DESTINATIONS
There are more than the maximum allowed number of destinations in this request
|
static int |
STATUS_UNSUPPORTED_NETWORK
The destination number is not in a supported network
|
static int |
STATUS_WRONG_CODE_THROTTLED
A wrong code was provided too many times
|
| Modifier | Constructor and Description |
|---|---|
protected |
BaseResult(int status,
java.lang.String errorText,
boolean temporaryError) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getErrorText() |
int |
getStatus() |
boolean |
isTemporaryError() |
public static final int STATUS_OK
public static final int STATUS_THROTTLED
public static final int STATUS_MISSING_PARAMS
public static final int STATUS_INVALID_PARAMS
public static final int STATUS_INVALID_CREDENTIALS
public static final int STATUS_INTERNAL_ERROR
public static final int STATUS_INVALID_REQUEST
public static final int STATUS_NUMBER_BARRED
public static final int STATUS_PARTNER_ACCOUNT_BARRED
public static final int STATUS_PARTNER_QUOTA_EXCEEDED
public static final int STATUS_ALREADY_REQUESTED
public static final int STATUS_UNSUPPORTED_NETWORK
public static final int STATUS_INVALID_CODE
public static final int STATUS_WRONG_CODE_THROTTLED
public static final int STATUS_TOO_MANY_DESTINATIONS
public static final int STATUS_NO_RESPONSE
public static final int STATUS_COMMS_FAILURE
protected BaseResult(int status, java.lang.String errorText, boolean temporaryError)
public int getStatus()
public java.lang.String getErrorText()
public boolean isTemporaryError()