Package com.mongodb.stitch.core
Enum StitchClientErrorCode
- java.lang.Object
-
- java.lang.Enum<StitchClientErrorCode>
-
- com.mongodb.stitch.core.StitchClientErrorCode
-
- All Implemented Interfaces:
Serializable
,Comparable<StitchClientErrorCode>
,java.lang.constant.Constable
public enum StitchClientErrorCode extends Enum<StitchClientErrorCode>
StitchClientErrorCode represents the errors that can occur when using the Stitch client, typically before a request is made to the Stitch server.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
-
Method Summary
Modifier and Type Method Description String
toString()
static StitchClientErrorCode
valueOf(String name)
Returns the enum constant of this type with the specified name.static StitchClientErrorCode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
LOGGED_OUT_DURING_REQUEST
public static final StitchClientErrorCode LOGGED_OUT_DURING_REQUEST
-
MUST_AUTHENTICATE_FIRST
public static final StitchClientErrorCode MUST_AUTHENTICATE_FIRST
-
USER_NO_LONGER_VALID
public static final StitchClientErrorCode USER_NO_LONGER_VALID
-
USER_NOT_FOUND
public static final StitchClientErrorCode USER_NOT_FOUND
-
USER_NOT_LOGGED_IN
public static final StitchClientErrorCode USER_NOT_LOGGED_IN
-
COULD_NOT_LOAD_PERSISTED_AUTH_INFO
public static final StitchClientErrorCode COULD_NOT_LOAD_PERSISTED_AUTH_INFO
-
COULD_NOT_PERSIST_AUTH_INFO
public static final StitchClientErrorCode COULD_NOT_PERSIST_AUTH_INFO
-
COULD_NOT_LOAD_DATA_SYNCHRONIZER
public static final StitchClientErrorCode COULD_NOT_LOAD_DATA_SYNCHRONIZER
-
-
Method Detail
-
values
public static StitchClientErrorCode[] 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 StitchClientErrorCode 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<StitchClientErrorCode>
-
-