Package graphql
Enum ErrorType
- java.lang.Object
-
- java.lang.Enum<ErrorType>
-
- graphql.ErrorType
-
- All Implemented Interfaces:
ErrorClassification
,java.io.Serializable
,java.lang.Comparable<ErrorType>
@PublicApi public enum ErrorType extends java.lang.Enum<ErrorType> implements ErrorClassification
All the errors in graphql belong to one of these categories
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DataFetchingException
ExecutionAborted
InvalidSyntax
NullValueInNonNullableField
OperationNotSupported
ValidationError
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ErrorType
valueOf(java.lang.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.-
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Methods inherited from interface graphql.ErrorClassification
toSpecification
-
-
-
-
Enum Constant Detail
-
InvalidSyntax
public static final ErrorType InvalidSyntax
-
ValidationError
public static final ErrorType ValidationError
-
DataFetchingException
public static final ErrorType DataFetchingException
-
NullValueInNonNullableField
public static final ErrorType NullValueInNonNullableField
-
OperationNotSupported
public static final ErrorType OperationNotSupported
-
ExecutionAborted
public static final ErrorType ExecutionAborted
-
-
Method Detail
-
values
public static ErrorType[] 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 (ErrorType c : ErrorType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ErrorType 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
-
-