net.rim.pushsdk.pushappmgmt
Enum InvalidPushAppErrorCode

java.lang.Object
  extended by java.lang.Enum<InvalidPushAppErrorCode>
      extended by net.rim.pushsdk.pushappmgmt.InvalidPushAppErrorCode
All Implemented Interfaces:
Serializable, Comparable<InvalidPushAppErrorCode>

public enum InvalidPushAppErrorCode
extends Enum<InvalidPushAppErrorCode>

Error codes relating to a push application being invalid.

Author:
mdandrea

Enum Constant Summary
ACTIVE
          A push application is active (when it should be inactive).
ALREADY_EXISTS
          A push application with the given id already exists.
DOES_NOT_EXIST
          A push application could not be found.
EXPIRED
          A push application has expired.
INACTIVE
          A push application is inactive (when it should be active).
INVALID_APPLICATION_TYPE
          A push application was not of the expected type for the operation being performed.
NAME_EXISTS
          A push application with the given name already exists.
NOT_WEB_SIGNAL
          A push application was not of the type Web Signal (when it should have been).
 
Method Summary
 String toString()
          Returns a textual description of the error code.
static InvalidPushAppErrorCode valueOf(String name)
          Returns the enum constant of this type with the specified name.
static InvalidPushAppErrorCode[] 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, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

ALREADY_EXISTS

public static final InvalidPushAppErrorCode ALREADY_EXISTS
A push application with the given id already exists.


DOES_NOT_EXIST

public static final InvalidPushAppErrorCode DOES_NOT_EXIST
A push application could not be found.


INACTIVE

public static final InvalidPushAppErrorCode INACTIVE
A push application is inactive (when it should be active).


ACTIVE

public static final InvalidPushAppErrorCode ACTIVE
A push application is active (when it should be inactive).


EXPIRED

public static final InvalidPushAppErrorCode EXPIRED
A push application has expired.


NAME_EXISTS

public static final InvalidPushAppErrorCode NAME_EXISTS
A push application with the given name already exists.


NOT_WEB_SIGNAL

public static final InvalidPushAppErrorCode NOT_WEB_SIGNAL
A push application was not of the type Web Signal (when it should have been).

Since:
1.1

INVALID_APPLICATION_TYPE

public static final InvalidPushAppErrorCode INVALID_APPLICATION_TYPE
A push application was not of the expected type for the operation being performed.

Since:
1.1
See Also:
PushApplicationType
Method Detail

values

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

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

valueOf

public static InvalidPushAppErrorCode valueOf(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:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

toString

public String toString()
Returns a textual description of the error code.

Overrides:
toString in class Enum<InvalidPushAppErrorCode>


Copyright © 2011 Research In Motion. All Rights Reserved.