public enum ErrorType extends Enum<ErrorType> implements ErrorClassification
DataFetcher's that can enable a client to make automated
decisions.GraphqlErrorBuilder.errorType(ErrorClassification)| Enum Constant and Description |
|---|
BAD_REQUEST
DataFetcher cannot or will not fetch the data value due to
something that is perceived to be a client error. |
FORBIDDEN
DataFetcher refuses to authorize the fetching of the data
value. |
INTERNAL_ERROR
DataFetcher encountered an unexpected condition that
prevented it from fetching the data value. |
NOT_FOUND
DataFetcher did not find a data value or is not willing to
disclose that one exists. |
UNAUTHORIZED
DataFetcher did not fetch the data value due to a lack of
valid authentication credentials. |
| Modifier and Type | Method and Description |
|---|---|
static ErrorType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ErrorType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOftoSpecificationpublic static final ErrorType BAD_REQUEST
DataFetcher cannot or will not fetch the data value due to
something that is perceived to be a client error.public static final ErrorType UNAUTHORIZED
DataFetcher did not fetch the data value due to a lack of
valid authentication credentials.public static final ErrorType FORBIDDEN
DataFetcher refuses to authorize the fetching of the data
value.public static final ErrorType NOT_FOUND
DataFetcher did not find a data value or is not willing to
disclose that one exists.public static final ErrorType INTERNAL_ERROR
DataFetcher encountered an unexpected condition that
prevented it from fetching the data value.public static ErrorType[] values()
for (ErrorType c : ErrorType.values()) System.out.println(c);
public static ErrorType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is null