Package com.batch.android.core
Enum WebserviceErrorCause
- java.lang.Object
-
- java.lang.Enum<WebserviceErrorCause>
-
- com.batch.android.core.WebserviceErrorCause
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<WebserviceErrorCause>
public enum WebserviceErrorCause extends java.lang.Enum<WebserviceErrorCause>
Possible causes of webservice failure
-
-
Enum Constant Summary
Enum Constants Enum Constant Description NETWORK_TIMEOUTOn network timeoutOTHEROther cause of failurePARSING_ERRORWhen the server response was not readableSERVER_ERRORWhen the response is 500SSL_HANDSHAKE_FAILUREOn SSL error
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static WebserviceErrorCausevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static WebserviceErrorCause[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PARSING_ERROR
public static final WebserviceErrorCause PARSING_ERROR
When the server response was not readable
-
SERVER_ERROR
public static final WebserviceErrorCause SERVER_ERROR
When the response is 500
-
NETWORK_TIMEOUT
public static final WebserviceErrorCause NETWORK_TIMEOUT
On network timeout
-
SSL_HANDSHAKE_FAILURE
public static final WebserviceErrorCause SSL_HANDSHAKE_FAILURE
On SSL error
-
OTHER
public static final WebserviceErrorCause OTHER
Other cause of failure
-
-
Method Detail
-
values
public static WebserviceErrorCause[] 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 (WebserviceErrorCause c : WebserviceErrorCause.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static WebserviceErrorCause 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 namejava.lang.NullPointerException- if the argument is null
-
-