Package graphql

Enum Class ErrorType

All Implemented Interfaces:
ErrorClassification, Serializable, Comparable<ErrorType>, Constable

@PublicApi public enum ErrorType extends Enum<ErrorType> implements ErrorClassification
All the errors in graphql belong to one of these categories
  • Enum Constant Details

    • 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 Details

    • values

      public static ErrorType[] 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

      public static ErrorType valueOf(String name)
      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 name
      NullPointerException - if the argument is null