Class NonNullableValueCoercedAsNullException

All Implemented Interfaces:
GraphQLError, Serializable

@PublicApi public class NonNullableValueCoercedAsNullException extends GraphQLException implements GraphQLError
This is thrown if a non nullable value is coerced to a null value
See Also:
  • Constructor Details

    • NonNullableValueCoercedAsNullException

      public NonNullableValueCoercedAsNullException(VariableDefinition variableDefinition, GraphQLType graphQLType)
    • NonNullableValueCoercedAsNullException

      public NonNullableValueCoercedAsNullException(VariableDefinition variableDefinition, String fieldName, GraphQLType graphQLType)
    • NonNullableValueCoercedAsNullException

      public NonNullableValueCoercedAsNullException(VariableDefinition variableDefinition, String fieldName, List<Object> path, GraphQLType graphQLType)
    • NonNullableValueCoercedAsNullException

      public NonNullableValueCoercedAsNullException(GraphQLType graphQLType)
    • NonNullableValueCoercedAsNullException

      public NonNullableValueCoercedAsNullException(VariableDefinition variableDefinition, String causeMessage)
    • NonNullableValueCoercedAsNullException

      public NonNullableValueCoercedAsNullException(String fieldName, List<Object> path, GraphQLType graphQLType)
    • NonNullableValueCoercedAsNullException

      public NonNullableValueCoercedAsNullException(GraphQLInputObjectField inputTypeField)
    • NonNullableValueCoercedAsNullException

      public NonNullableValueCoercedAsNullException(GraphQLInputObjectField inputTypeField, List<Object> path)
    • NonNullableValueCoercedAsNullException

      public NonNullableValueCoercedAsNullException(GraphQLArgument graphQLArgument)
  • Method Details

    • getLocations

      public List<SourceLocation> getLocations()
      Specified by:
      getLocations in interface GraphQLError
      Returns:
      the location(s) within the GraphQL document at which the error occurred. Each SourceLocation describes the beginning of an associated syntax element
    • getPath

      public List<Object> getPath()
      Description copied from interface: GraphQLError
      The graphql spec says that the (optional) path field of any error must be a list of path entries starting at the root of the response and ending with the field associated with the error https://spec.graphql.org/draft/#sec-Errors.Error-Result-Format
      Specified by:
      getPath in interface GraphQLError
      Returns:
      the path in list format
    • getErrorType

      public ErrorType getErrorType()
      Specified by:
      getErrorType in interface GraphQLError
      Returns:
      an object classifying this error