Package com.batch.android
Enum Class FailReason
- All Implemented Interfaces:
Serializable
,Comparable<FailReason>
,java.lang.constant.Constable
Reason for Batch failure
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionYour API key has been deactivatedYour API key is invalidNetwork is not available or not respondingBatch has globally been opted out from: network calls are not allowedAn unexpected error occured, a future retry can succeed -
Method Summary
Modifier and TypeMethodDescriptionstatic FailReason
Returns the enum constant of this class with the specified name.static FailReason[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NETWORK_ERROR
Network is not available or not responding -
INVALID_API_KEY
Your API key is invalid -
DEACTIVATED_API_KEY
Your API key has been deactivated -
UNEXPECTED_ERROR
An unexpected error occured, a future retry can succeed -
SDK_OPTED_OUT
Batch has globally been opted out from: network calls are not allowed
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-