Package dev.openfga.sdk.api.model
Enum ErrorCode
- java.lang.Object
-
- java.lang.Enum<ErrorCode>
-
- dev.openfga.sdk.api.model.ErrorCode
-
-
Enum Constant Summary
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ErrorCodefromValue(java.lang.String value)java.lang.StringgetValue()java.lang.StringtoString()java.lang.StringtoUrlQueryString(java.lang.String prefix)Convert the instance into URL query string.static ErrorCodevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static ErrorCode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NO_ERROR
public static final ErrorCode NO_ERROR
-
VALIDATION_ERROR
public static final ErrorCode VALIDATION_ERROR
-
AUTHORIZATION_MODEL_NOT_FOUND
public static final ErrorCode AUTHORIZATION_MODEL_NOT_FOUND
-
AUTHORIZATION_MODEL_RESOLUTION_TOO_COMPLEX
public static final ErrorCode AUTHORIZATION_MODEL_RESOLUTION_TOO_COMPLEX
-
INVALID_WRITE_INPUT
public static final ErrorCode INVALID_WRITE_INPUT
-
CANNOT_ALLOW_DUPLICATE_TUPLES_IN_ONE_REQUEST
public static final ErrorCode CANNOT_ALLOW_DUPLICATE_TUPLES_IN_ONE_REQUEST
-
CANNOT_ALLOW_DUPLICATE_TYPES_IN_ONE_REQUEST
public static final ErrorCode CANNOT_ALLOW_DUPLICATE_TYPES_IN_ONE_REQUEST
-
CANNOT_ALLOW_MULTIPLE_REFERENCES_TO_ONE_RELATION
public static final ErrorCode CANNOT_ALLOW_MULTIPLE_REFERENCES_TO_ONE_RELATION
-
INVALID_CONTINUATION_TOKEN
public static final ErrorCode INVALID_CONTINUATION_TOKEN
-
INVALID_TUPLE_SET
public static final ErrorCode INVALID_TUPLE_SET
-
INVALID_CHECK_INPUT
public static final ErrorCode INVALID_CHECK_INPUT
-
INVALID_EXPAND_INPUT
public static final ErrorCode INVALID_EXPAND_INPUT
-
UNSUPPORTED_USER_SET
public static final ErrorCode UNSUPPORTED_USER_SET
-
INVALID_OBJECT_FORMAT
public static final ErrorCode INVALID_OBJECT_FORMAT
-
WRITE_FAILED_DUE_TO_INVALID_INPUT
public static final ErrorCode WRITE_FAILED_DUE_TO_INVALID_INPUT
-
AUTHORIZATION_MODEL_ASSERTIONS_NOT_FOUND
public static final ErrorCode AUTHORIZATION_MODEL_ASSERTIONS_NOT_FOUND
-
LATEST_AUTHORIZATION_MODEL_NOT_FOUND
public static final ErrorCode LATEST_AUTHORIZATION_MODEL_NOT_FOUND
-
TYPE_NOT_FOUND
public static final ErrorCode TYPE_NOT_FOUND
-
RELATION_NOT_FOUND
public static final ErrorCode RELATION_NOT_FOUND
-
EMPTY_RELATION_DEFINITION
public static final ErrorCode EMPTY_RELATION_DEFINITION
-
INVALID_USER
public static final ErrorCode INVALID_USER
-
INVALID_TUPLE
public static final ErrorCode INVALID_TUPLE
-
UNKNOWN_RELATION
public static final ErrorCode UNKNOWN_RELATION
-
STORE_ID_INVALID_LENGTH
public static final ErrorCode STORE_ID_INVALID_LENGTH
-
ASSERTIONS_TOO_MANY_ITEMS
public static final ErrorCode ASSERTIONS_TOO_MANY_ITEMS
-
ID_TOO_LONG
public static final ErrorCode ID_TOO_LONG
-
AUTHORIZATION_MODEL_ID_TOO_LONG
public static final ErrorCode AUTHORIZATION_MODEL_ID_TOO_LONG
-
TUPLE_KEY_VALUE_NOT_SPECIFIED
public static final ErrorCode TUPLE_KEY_VALUE_NOT_SPECIFIED
-
TUPLE_KEYS_TOO_MANY_OR_TOO_FEW_ITEMS
public static final ErrorCode TUPLE_KEYS_TOO_MANY_OR_TOO_FEW_ITEMS
-
PAGE_SIZE_INVALID
public static final ErrorCode PAGE_SIZE_INVALID
-
PARAM_MISSING_VALUE
public static final ErrorCode PARAM_MISSING_VALUE
-
DIFFERENCE_BASE_MISSING_VALUE
public static final ErrorCode DIFFERENCE_BASE_MISSING_VALUE
-
SUBTRACT_BASE_MISSING_VALUE
public static final ErrorCode SUBTRACT_BASE_MISSING_VALUE
-
OBJECT_TOO_LONG
public static final ErrorCode OBJECT_TOO_LONG
-
RELATION_TOO_LONG
public static final ErrorCode RELATION_TOO_LONG
-
TYPE_DEFINITIONS_TOO_FEW_ITEMS
public static final ErrorCode TYPE_DEFINITIONS_TOO_FEW_ITEMS
-
TYPE_INVALID_LENGTH
public static final ErrorCode TYPE_INVALID_LENGTH
-
TYPE_INVALID_PATTERN
public static final ErrorCode TYPE_INVALID_PATTERN
-
RELATIONS_TOO_FEW_ITEMS
public static final ErrorCode RELATIONS_TOO_FEW_ITEMS
-
RELATIONS_TOO_LONG
public static final ErrorCode RELATIONS_TOO_LONG
-
RELATIONS_INVALID_PATTERN
public static final ErrorCode RELATIONS_INVALID_PATTERN
-
OBJECT_INVALID_PATTERN
public static final ErrorCode OBJECT_INVALID_PATTERN
-
QUERY_STRING_TYPE_CONTINUATION_TOKEN_MISMATCH
public static final ErrorCode QUERY_STRING_TYPE_CONTINUATION_TOKEN_MISMATCH
-
EXCEEDED_ENTITY_LIMIT
public static final ErrorCode EXCEEDED_ENTITY_LIMIT
-
INVALID_CONTEXTUAL_TUPLE
public static final ErrorCode INVALID_CONTEXTUAL_TUPLE
-
DUPLICATE_CONTEXTUAL_TUPLE
public static final ErrorCode DUPLICATE_CONTEXTUAL_TUPLE
-
INVALID_AUTHORIZATION_MODEL
public static final ErrorCode INVALID_AUTHORIZATION_MODEL
-
UNSUPPORTED_SCHEMA_VERSION
public static final ErrorCode UNSUPPORTED_SCHEMA_VERSION
-
UNKNOWN_DEFAULT_OPEN_API
public static final ErrorCode UNKNOWN_DEFAULT_OPEN_API
-
-
Method Detail
-
values
public static 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 (ErrorCode c : 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 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
-
getValue
public java.lang.String getValue()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Enum<ErrorCode>
-
fromValue
public static ErrorCode fromValue(java.lang.String value)
-
toUrlQueryString
public java.lang.String toUrlQueryString(java.lang.String prefix)
Convert the instance into URL query string.- Parameters:
prefix- prefix of the query string- Returns:
- URL query string
-
-