Class FieldValidationSupport.FieldAndArgError

java.lang.Object
graphql.execution.instrumentation.fieldvalidation.FieldValidationSupport.FieldAndArgError
All Implemented Interfaces:
GraphQLError, Serializable
Enclosing class:
FieldValidationSupport

private static class FieldValidationSupport.FieldAndArgError extends Object implements GraphQLError
  • Field Details

  • Constructor Details

  • Method Details

    • getMessage

      public String getMessage()
      Specified by:
      getMessage in interface GraphQLError
      Returns:
      a description of the error intended for the developer as a guide to understand and correct the error
    • getErrorType

      public ErrorType getErrorType()
      Specified by:
      getErrorType in interface GraphQLError
      Returns:
      an object classifying this error
    • 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 should be a list of path entries https://spec.graphql.org/October2021/#sec-Handling-Field-Errors
      Specified by:
      getPath in interface GraphQLError
      Returns:
      the path in list format