com.netmera.mobile
Enum NetmeraException.ErrorCode

java.lang.Object
  extended by java.lang.Enum<NetmeraException.ErrorCode>
      extended by com.netmera.mobile.NetmeraException.ErrorCode
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<NetmeraException.ErrorCode>
Enclosing class:
NetmeraException

public static enum NetmeraException.ErrorCode
extends java.lang.Enum<NetmeraException.ErrorCode>


Enum Constant Summary
EC_ACCOUNT_TYPE_LIMIT
           
EC_ALREADY_REGISTERED_EMAIL
           
EC_FACEBOOK_INVALID_JSON
          ErrorCodes related to facebook
EC_FACEBOOK_INVALID_URL
           
EC_FACEBOOK_IO_EXCEPTION
           
EC_FB_DIALOG_ERROR
           
EC_FB_ERROR
           
EC_HTTP_PROTOCOL_EXCEPTION
           
EC_INTERNAL_SERVER_ERROR
          ErrorCodes related to general exceptions
EC_INVALID_ACTION_TOKEN
           
EC_INVALID_DATA_TYPE
           
EC_INVALID_DATE_FORMAT
           
EC_INVALID_EMAIL
          ErrorCodes related to user exceptions
EC_INVALID_JSON
           
EC_INVALID_KEY
           
EC_INVALID_LATITUDE
          ErrorCodes related to geo-location
EC_INVALID_LONGITUDE
           
EC_INVALID_OBJECT_NAME
           
EC_INVALID_PASSWORD
           
EC_INVALID_PATH
           
EC_INVALID_REQUEST
           
EC_INVALID_RESPONSE
           
EC_INVALID_URL
           
EC_IO_EXCEPTION
           
EC_LIMIT_EXCEEDED
           
EC_NULL_EXCEPTION
           
EC_PUSH_DEVICE_NOT_REGISTERED
           
EC_PUSH_ERROR
           
EC_PUSH_MESSAGE_EMPTY
          ErrorCodes related to push notification
EC_PUSH_MESSAGE_LIMIT
           
EC_REQUIRED_FIELD
          ErrorCodes related to data exceptions
EC_TW_ERROR
          ErrorCodes related to twitter
EC_UNSUPPORTED_ENCODING
           
EC_USER_LOGIN_ERROR
           
EC_USER_REGISTER_ERROR
           
EC_USER_UPDATE_ERROR
           
EC_VALUE_ZERO
           
 
Method Summary
 int getValue()
           
static NetmeraException.ErrorCode valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static NetmeraException.ErrorCode[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

EC_INTERNAL_SERVER_ERROR

public static final NetmeraException.ErrorCode EC_INTERNAL_SERVER_ERROR
ErrorCodes related to general exceptions


EC_IO_EXCEPTION

public static final NetmeraException.ErrorCode EC_IO_EXCEPTION

EC_NULL_EXCEPTION

public static final NetmeraException.ErrorCode EC_NULL_EXCEPTION

EC_HTTP_PROTOCOL_EXCEPTION

public static final NetmeraException.ErrorCode EC_HTTP_PROTOCOL_EXCEPTION

EC_INVALID_URL

public static final NetmeraException.ErrorCode EC_INVALID_URL

EC_INVALID_JSON

public static final NetmeraException.ErrorCode EC_INVALID_JSON

EC_INVALID_DATE_FORMAT

public static final NetmeraException.ErrorCode EC_INVALID_DATE_FORMAT

EC_INVALID_REQUEST

public static final NetmeraException.ErrorCode EC_INVALID_REQUEST

EC_INVALID_RESPONSE

public static final NetmeraException.ErrorCode EC_INVALID_RESPONSE

EC_UNSUPPORTED_ENCODING

public static final NetmeraException.ErrorCode EC_UNSUPPORTED_ENCODING

EC_INVALID_ACTION_TOKEN

public static final NetmeraException.ErrorCode EC_INVALID_ACTION_TOKEN

EC_LIMIT_EXCEEDED

public static final NetmeraException.ErrorCode EC_LIMIT_EXCEEDED

EC_ACCOUNT_TYPE_LIMIT

public static final NetmeraException.ErrorCode EC_ACCOUNT_TYPE_LIMIT

EC_REQUIRED_FIELD

public static final NetmeraException.ErrorCode EC_REQUIRED_FIELD
ErrorCodes related to data exceptions


EC_INVALID_DATA_TYPE

public static final NetmeraException.ErrorCode EC_INVALID_DATA_TYPE

EC_INVALID_KEY

public static final NetmeraException.ErrorCode EC_INVALID_KEY

EC_INVALID_PATH

public static final NetmeraException.ErrorCode EC_INVALID_PATH

EC_INVALID_OBJECT_NAME

public static final NetmeraException.ErrorCode EC_INVALID_OBJECT_NAME

EC_VALUE_ZERO

public static final NetmeraException.ErrorCode EC_VALUE_ZERO

EC_INVALID_EMAIL

public static final NetmeraException.ErrorCode EC_INVALID_EMAIL
ErrorCodes related to user exceptions


EC_INVALID_PASSWORD

public static final NetmeraException.ErrorCode EC_INVALID_PASSWORD

EC_ALREADY_REGISTERED_EMAIL

public static final NetmeraException.ErrorCode EC_ALREADY_REGISTERED_EMAIL

EC_USER_LOGIN_ERROR

public static final NetmeraException.ErrorCode EC_USER_LOGIN_ERROR

EC_USER_REGISTER_ERROR

public static final NetmeraException.ErrorCode EC_USER_REGISTER_ERROR

EC_USER_UPDATE_ERROR

public static final NetmeraException.ErrorCode EC_USER_UPDATE_ERROR

EC_INVALID_LATITUDE

public static final NetmeraException.ErrorCode EC_INVALID_LATITUDE
ErrorCodes related to geo-location


EC_INVALID_LONGITUDE

public static final NetmeraException.ErrorCode EC_INVALID_LONGITUDE

EC_FACEBOOK_INVALID_JSON

public static final NetmeraException.ErrorCode EC_FACEBOOK_INVALID_JSON
ErrorCodes related to facebook


EC_FACEBOOK_INVALID_URL

public static final NetmeraException.ErrorCode EC_FACEBOOK_INVALID_URL

EC_FACEBOOK_IO_EXCEPTION

public static final NetmeraException.ErrorCode EC_FACEBOOK_IO_EXCEPTION

EC_FB_ERROR

public static final NetmeraException.ErrorCode EC_FB_ERROR

EC_FB_DIALOG_ERROR

public static final NetmeraException.ErrorCode EC_FB_DIALOG_ERROR

EC_TW_ERROR

public static final NetmeraException.ErrorCode EC_TW_ERROR
ErrorCodes related to twitter


EC_PUSH_MESSAGE_EMPTY

public static final NetmeraException.ErrorCode EC_PUSH_MESSAGE_EMPTY
ErrorCodes related to push notification


EC_PUSH_MESSAGE_LIMIT

public static final NetmeraException.ErrorCode EC_PUSH_MESSAGE_LIMIT

EC_PUSH_ERROR

public static final NetmeraException.ErrorCode EC_PUSH_ERROR

EC_PUSH_DEVICE_NOT_REGISTERED

public static final NetmeraException.ErrorCode EC_PUSH_DEVICE_NOT_REGISTERED
Method Detail

values

public static NetmeraException.ErrorCode[] 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 (NetmeraException.ErrorCode c : NetmeraException.ErrorCode.values())
    System.out.println(c);

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

valueOf

public static NetmeraException.ErrorCode 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

getValue

public int getValue()