public enum DeliveryError extends Enum<DeliveryError>
Enum Constant and Description |
---|
INVALID_PAYLOAD_SIZE |
INVALID_TOKEN |
INVALID_TOKEN_SIZE |
INVALID_TOPIC_SIZE |
MISSING_DEVICE_TOKEN |
MISSING_PAYLOAD |
MISSING_TOPIC |
NO_ERROR
Connection closed without any error.
|
NONE |
PROCESSING_ERROR |
UNKNOWN |
Modifier and Type | Method and Description |
---|---|
int |
code()
The status code as specified by Apple
|
static DeliveryError |
ofCode(int code)
Returns the appropriate
DeliveryError enum
corresponding to the Apple provided status code |
static DeliveryError |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DeliveryError[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DeliveryError NO_ERROR
public static final DeliveryError PROCESSING_ERROR
public static final DeliveryError MISSING_DEVICE_TOKEN
public static final DeliveryError MISSING_TOPIC
public static final DeliveryError MISSING_PAYLOAD
public static final DeliveryError INVALID_TOKEN_SIZE
public static final DeliveryError INVALID_TOPIC_SIZE
public static final DeliveryError INVALID_PAYLOAD_SIZE
public static final DeliveryError INVALID_TOKEN
public static final DeliveryError NONE
public static final DeliveryError UNKNOWN
public static DeliveryError[] values()
for (DeliveryError c : DeliveryError.values()) System.out.println(c);
public static DeliveryError valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic int code()
public static DeliveryError ofCode(int code)
DeliveryError
enum
corresponding to the Apple provided status codecode
- status code provided by AppleCopyright © 2015. All rights reserved.