Package general.common
Enum ApiEnvelope.ErrorCode
- java.lang.Object
-
- java.lang.Enum<ApiEnvelope.ErrorCode>
-
- general.common.ApiEnvelope.ErrorCode
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<ApiEnvelope.ErrorCode>
- Enclosing class:
- ApiEnvelope
public static enum ApiEnvelope.ErrorCode extends java.lang.Enum<ApiEnvelope.ErrorCode>
-
-
Enum Constant Summary
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ApiEnvelope.ErrorCodevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static ApiEnvelope.ErrorCode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
VALIDATION_ERROR
public static final ApiEnvelope.ErrorCode VALIDATION_ERROR
-
INVALID_REQUEST
public static final ApiEnvelope.ErrorCode INVALID_REQUEST
-
INVALID_JSON
public static final ApiEnvelope.ErrorCode INVALID_JSON
-
INVALID_AUTH_METHOD
public static final ApiEnvelope.ErrorCode INVALID_AUTH_METHOD
-
INVALID_API_TOKEN
public static final ApiEnvelope.ErrorCode INVALID_API_TOKEN
-
NOT_FOUND
public static final ApiEnvelope.ErrorCode NOT_FOUND
-
FILE_ALREADY_EXISTS
public static final ApiEnvelope.ErrorCode FILE_ALREADY_EXISTS
-
IMPORT_EXPORT_ERROR
public static final ApiEnvelope.ErrorCode IMPORT_EXPORT_ERROR
-
AUTH_ERROR
public static final ApiEnvelope.ErrorCode AUTH_ERROR
-
NO_ACCESS
public static final ApiEnvelope.ErrorCode NO_ACCESS
-
LDAP_ERROR
public static final ApiEnvelope.ErrorCode LDAP_ERROR
-
FORBIDDEN
public static final ApiEnvelope.ErrorCode FORBIDDEN
-
CONFIG_ERROR
public static final ApiEnvelope.ErrorCode CONFIG_ERROR
-
WRONG_CONTENT_TYPE
public static final ApiEnvelope.ErrorCode WRONG_CONTENT_TYPE
-
MISSING_FILE
public static final ApiEnvelope.ErrorCode MISSING_FILE
-
IO_ERROR
public static final ApiEnvelope.ErrorCode IO_ERROR
-
STUDY_LOCKED
public static final ApiEnvelope.ErrorCode STUDY_LOCKED
-
TOO_LARGE
public static final ApiEnvelope.ErrorCode TOO_LARGE
-
CLIENT_ERROR
public static final ApiEnvelope.ErrorCode CLIENT_ERROR
-
OPENAI_ERROR
public static final ApiEnvelope.ErrorCode OPENAI_ERROR
-
UNSPECIFIED
public static final ApiEnvelope.ErrorCode UNSPECIFIED
-
UNEXPECTED_ERROR
public static final ApiEnvelope.ErrorCode UNEXPECTED_ERROR
-
-
Method Detail
-
values
public static ApiEnvelope.ErrorCode[] 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 (ApiEnvelope.ErrorCode c : ApiEnvelope.ErrorCode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ApiEnvelope.ErrorCode 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
-
-