Package com.mongodb.stitch.core
Enum StitchServiceErrorCode
- java.lang.Object
-
- java.lang.Enum<StitchServiceErrorCode>
-
- com.mongodb.stitch.core.StitchServiceErrorCode
-
- All Implemented Interfaces:
Serializable
,Comparable<StitchServiceErrorCode>
,java.lang.constant.Constable
public enum StitchServiceErrorCode extends Enum<StitchServiceErrorCode>
StitchServiceErrorCode represents the set of errors that can come back from a Stitch request.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
-
Enum Constant Summary
-
Method Summary
Modifier and Type Method Description static StitchServiceErrorCode
fromCodeName(String codeName)
Creates an error code from the given name.String
getCodeName()
Gets the name of this error as the API refers to it.static StitchServiceErrorCode
valueOf(String name)
Returns the enum constant of this type with the specified name.static StitchServiceErrorCode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
MISSING_AUTH_REQ
public static final StitchServiceErrorCode MISSING_AUTH_REQ
-
INVALID_SESSION
public static final StitchServiceErrorCode INVALID_SESSION
-
USER_APP_DOMAIN_MISMATCH
public static final StitchServiceErrorCode USER_APP_DOMAIN_MISMATCH
-
DOMAIN_NOT_ALLOWED
public static final StitchServiceErrorCode DOMAIN_NOT_ALLOWED
-
READ_SIZE_LIMIT_EXCEEDED
public static final StitchServiceErrorCode READ_SIZE_LIMIT_EXCEEDED
-
INVALID_PARAMETER
public static final StitchServiceErrorCode INVALID_PARAMETER
-
MISSING_PARAMETER
public static final StitchServiceErrorCode MISSING_PARAMETER
-
TWILIO_ERROR
public static final StitchServiceErrorCode TWILIO_ERROR
-
GCM_ERROR
public static final StitchServiceErrorCode GCM_ERROR
-
HTTP_ERROR
public static final StitchServiceErrorCode HTTP_ERROR
-
AWS_ERROR
public static final StitchServiceErrorCode AWS_ERROR
-
MONGODB_ERROR
public static final StitchServiceErrorCode MONGODB_ERROR
-
ARGUMENTS_NOT_ALLOWED
public static final StitchServiceErrorCode ARGUMENTS_NOT_ALLOWED
-
FUNCTION_EXECUTION_ERROR
public static final StitchServiceErrorCode FUNCTION_EXECUTION_ERROR
-
NO_MATCHING_RULE_FOUND
public static final StitchServiceErrorCode NO_MATCHING_RULE_FOUND
-
INTERNAL_SERVER_ERROR
public static final StitchServiceErrorCode INTERNAL_SERVER_ERROR
-
AUTH_PROVIDER_NOT_FOUND
public static final StitchServiceErrorCode AUTH_PROVIDER_NOT_FOUND
-
AUTH_PROVIDER_ALREADY_EXISTS
public static final StitchServiceErrorCode AUTH_PROVIDER_ALREADY_EXISTS
-
SERVICE_NOT_FOUND
public static final StitchServiceErrorCode SERVICE_NOT_FOUND
-
SERVICE_TYPE_NOT_FOUND
public static final StitchServiceErrorCode SERVICE_TYPE_NOT_FOUND
-
SERVICE_ALREADY_EXISTS
public static final StitchServiceErrorCode SERVICE_ALREADY_EXISTS
-
SERVICE_COMMAND_NOT_FOUND
public static final StitchServiceErrorCode SERVICE_COMMAND_NOT_FOUND
-
VALUE_NOT_FOUND
public static final StitchServiceErrorCode VALUE_NOT_FOUND
-
VALUE_ALREADY_EXISTS
public static final StitchServiceErrorCode VALUE_ALREADY_EXISTS
-
VALUE_DUPLICATE_NAME
public static final StitchServiceErrorCode VALUE_DUPLICATE_NAME
-
FUNCTION_NOT_FOUND
public static final StitchServiceErrorCode FUNCTION_NOT_FOUND
-
FUNCTION_ALREADY_EXISTS
public static final StitchServiceErrorCode FUNCTION_ALREADY_EXISTS
-
FUNCTION_DUPLICATE_NAME
public static final StitchServiceErrorCode FUNCTION_DUPLICATE_NAME
-
FUNCTION_SYNTAX_ERROR
public static final StitchServiceErrorCode FUNCTION_SYNTAX_ERROR
-
FUNCTION_INVALID
public static final StitchServiceErrorCode FUNCTION_INVALID
-
INCOMING_WEBHOOK_NOT_FOUND
public static final StitchServiceErrorCode INCOMING_WEBHOOK_NOT_FOUND
-
INCOMING_WEBHOOK_ALREADY_EXISTS
public static final StitchServiceErrorCode INCOMING_WEBHOOK_ALREADY_EXISTS
-
INCOMING_WEBHOOK_DUPLICATE_NAME
public static final StitchServiceErrorCode INCOMING_WEBHOOK_DUPLICATE_NAME
-
RULE_NOT_FOUND
public static final StitchServiceErrorCode RULE_NOT_FOUND
-
API_KEY_NOT_FOUND
public static final StitchServiceErrorCode API_KEY_NOT_FOUND
-
RULE_ALREADY_EXISTS
public static final StitchServiceErrorCode RULE_ALREADY_EXISTS
-
RULE_DUPLICATE_NAME
public static final StitchServiceErrorCode RULE_DUPLICATE_NAME
-
AUTH_PROVIDER_DUPLICATE_NAME
public static final StitchServiceErrorCode AUTH_PROVIDER_DUPLICATE_NAME
-
RESTRICTED_HOST
public static final StitchServiceErrorCode RESTRICTED_HOST
-
API_KEY_ALREADY_EXISTS
public static final StitchServiceErrorCode API_KEY_ALREADY_EXISTS
-
INCOMING_WEBHOOK_AUTH_FAILED
public static final StitchServiceErrorCode INCOMING_WEBHOOK_AUTH_FAILED
-
EXECUTION_TIME_LIMIT_EXCEEDED
public static final StitchServiceErrorCode EXECUTION_TIME_LIMIT_EXCEEDED
-
NOT_CALLABLE
public static final StitchServiceErrorCode NOT_CALLABLE
-
USER_ALREADY_CONFIRMED
public static final StitchServiceErrorCode USER_ALREADY_CONFIRMED
-
USER_NOT_FOUND
public static final StitchServiceErrorCode USER_NOT_FOUND
-
USER_DISABLED
public static final StitchServiceErrorCode USER_DISABLED
-
UNKNOWN
public static final StitchServiceErrorCode UNKNOWN
-
-
Method Detail
-
values
public static StitchServiceErrorCode[] 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 StitchServiceErrorCode 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
-
fromCodeName
public static StitchServiceErrorCode fromCodeName(String codeName)
Creates an error code from the given name.- Parameters:
codeName
- the API code name to look up.- Returns:
- the error that maps to the code name.
-
getCodeName
public String getCodeName()
Gets the name of this error as the API refers to it.- Returns:
- the name of this error as the API refers to it.
-
-