Package com.mongodb.stitch.core
Enum StitchRequestErrorCode
- java.lang.Object
-
- java.lang.Enum<StitchRequestErrorCode>
-
- com.mongodb.stitch.core.StitchRequestErrorCode
-
- All Implemented Interfaces:
Serializable
,Comparable<StitchRequestErrorCode>
,java.lang.constant.Constable
public enum StitchRequestErrorCode extends Enum<StitchRequestErrorCode>
StitchRequestErrorCode represents the reasons that a request may fail.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BOOTSTRAP_ERROR
DECODING_ERROR
ENCODING_ERROR
REQUEST_SIZE_ERROR
TRANSPORT_ERROR
-
Method Summary
Modifier and Type Method Description String
toString()
static StitchRequestErrorCode
valueOf(String name)
Returns the enum constant of this type with the specified name.static StitchRequestErrorCode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
REQUEST_SIZE_ERROR
public static final StitchRequestErrorCode REQUEST_SIZE_ERROR
-
TRANSPORT_ERROR
public static final StitchRequestErrorCode TRANSPORT_ERROR
-
DECODING_ERROR
public static final StitchRequestErrorCode DECODING_ERROR
-
ENCODING_ERROR
public static final StitchRequestErrorCode ENCODING_ERROR
-
BOOTSTRAP_ERROR
public static final StitchRequestErrorCode BOOTSTRAP_ERROR
-
-
Method Detail
-
values
public static StitchRequestErrorCode[] values()
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static StitchRequestErrorCode 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
-
toString
public String toString()
- Overrides:
toString
in classEnum<StitchRequestErrorCode>
-
-