Enum MockHttpTransportHelper.ErrorResponses
- java.lang.Object
-
- java.lang.Enum<MockHttpTransportHelper.ErrorResponses>
-
- com.google.cloud.hadoop.util.testing.MockHttpTransportHelper.ErrorResponses
-
- All Implemented Interfaces:
Serializable
,Comparable<MockHttpTransportHelper.ErrorResponses>
- Enclosing class:
- MockHttpTransportHelper
public static enum MockHttpTransportHelper.ErrorResponses extends Enum<MockHttpTransportHelper.ErrorResponses>
HTTP JSON API error responses
-
-
Enum Constant Summary
Enum Constants Enum Constant Description GONE
NOT_FOUND
RANGE_NOT_SATISFIABLE
RATE_LIMITED
SERVER_ERROR
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getErrorCode()
String
getErrorDomain()
String
getErrorMessage()
String
getErrorReason()
int
getResponseCode()
static MockHttpTransportHelper.ErrorResponses
valueOf(String name)
Returns the enum constant of this type with the specified name.static MockHttpTransportHelper.ErrorResponses[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
GONE
public static final MockHttpTransportHelper.ErrorResponses GONE
-
NOT_FOUND
public static final MockHttpTransportHelper.ErrorResponses NOT_FOUND
-
RANGE_NOT_SATISFIABLE
public static final MockHttpTransportHelper.ErrorResponses RANGE_NOT_SATISFIABLE
-
RATE_LIMITED
public static final MockHttpTransportHelper.ErrorResponses RATE_LIMITED
-
SERVER_ERROR
public static final MockHttpTransportHelper.ErrorResponses SERVER_ERROR
-
-
Method Detail
-
values
public static MockHttpTransportHelper.ErrorResponses[] 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 (MockHttpTransportHelper.ErrorResponses c : MockHttpTransportHelper.ErrorResponses.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MockHttpTransportHelper.ErrorResponses 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 nameNullPointerException
- if the argument is null
-
getResponseCode
public int getResponseCode()
-
getErrorCode
public int getErrorCode()
-
getErrorReason
public String getErrorReason()
-
getErrorMessage
public String getErrorMessage()
-
getErrorDomain
public String getErrorDomain()
-
-