com.sponsorpay.sdk.android.publisher.currency
Enum CurrencyServerAbstractResponse.RequestErrorType

java.lang.Object
  extended by java.lang.Enum<CurrencyServerAbstractResponse.RequestErrorType>
      extended by com.sponsorpay.sdk.android.publisher.currency.CurrencyServerAbstractResponse.RequestErrorType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<CurrencyServerAbstractResponse.RequestErrorType>
Enclosing class:
CurrencyServerAbstractResponse

public static enum CurrencyServerAbstractResponse.RequestErrorType
extends java.lang.Enum<CurrencyServerAbstractResponse.RequestErrorType>

Types of error condition which a request / response might result in.


Enum Constant Summary
ERROR_INVALID_RESPONSE
          Returned response is not formatted in an expected way.
ERROR_INVALID_RESPONSE_SIGNATURE
          Response doesn't contain a valid signature.
ERROR_NO_INTERNET_CONNECTION
          Request couldn't be sent, usually due to a down network connection.
ERROR_OTHER
          An error whose cause couldn't be determined.
NO_ERROR
          A correct response was received.
SERVER_RETURNED_ERROR
          The server returned an error.
 
Method Summary
static CurrencyServerAbstractResponse.RequestErrorType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static CurrencyServerAbstractResponse.RequestErrorType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

NO_ERROR

public static final CurrencyServerAbstractResponse.RequestErrorType NO_ERROR
A correct response was received.


ERROR_NO_INTERNET_CONNECTION

public static final CurrencyServerAbstractResponse.RequestErrorType ERROR_NO_INTERNET_CONNECTION
Request couldn't be sent, usually due to a down network connection.


ERROR_INVALID_RESPONSE

public static final CurrencyServerAbstractResponse.RequestErrorType ERROR_INVALID_RESPONSE
Returned response is not formatted in an expected way.


ERROR_INVALID_RESPONSE_SIGNATURE

public static final CurrencyServerAbstractResponse.RequestErrorType ERROR_INVALID_RESPONSE_SIGNATURE
Response doesn't contain a valid signature.


SERVER_RETURNED_ERROR

public static final CurrencyServerAbstractResponse.RequestErrorType SERVER_RETURNED_ERROR
The server returned an error. Use CurrencyServerAbstractResponse.getErrorCode() and CurrencyServerAbstractResponse.getErrorMessage() to extract more details about this error.


ERROR_OTHER

public static final CurrencyServerAbstractResponse.RequestErrorType ERROR_OTHER
An error whose cause couldn't be determined.

Method Detail

values

public static CurrencyServerAbstractResponse.RequestErrorType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (CurrencyServerAbstractResponse.RequestErrorType c : CurrencyServerAbstractResponse.RequestErrorType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static CurrencyServerAbstractResponse.RequestErrorType valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null