Enum Class ErrorType
- All Implemented Interfaces:
ErrorClassification,Serializable,Comparable<ErrorType>,Constable
Common categories to use to classify for exceptions raised by
DataFetcher's that can enable a client to make automated
decisions.- Since:
- 1.0.0
- Author:
- Rossen Stoyanchev
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionDataFetchercannot or will not fetch the data value due to something that is perceived to be a client error.DataFetcherrefuses to authorize the fetching of the data value.DataFetcherencountered an unexpected condition that prevented it from fetching the data value.DataFetcherdid not find a data value or is not willing to disclose that one exists.DataFetcherdid not fetch the data value due to a lack of valid authentication credentials. -
Method Summary
Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfMethods inherited from interface graphql.ErrorClassification
toSpecification
-
Enum Constant Details
-
BAD_REQUEST
DataFetchercannot or will not fetch the data value due to something that is perceived to be a client error. -
UNAUTHORIZED
DataFetcherdid not fetch the data value due to a lack of valid authentication credentials. -
FORBIDDEN
DataFetcherrefuses to authorize the fetching of the data value. -
NOT_FOUND
DataFetcherdid not find a data value or is not willing to disclose that one exists. -
INTERNAL_ERROR
DataFetcherencountered an unexpected condition that prevented it from fetching the data value.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-