Package graphql

Class InvalidSyntaxError

java.lang.Object
graphql.InvalidSyntaxError
All Implemented Interfaces:
GraphQLError, Serializable

public class InvalidSyntaxError extends Object implements GraphQLError
See Also:
  • 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
    • 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
    • getSourcePreview

      public String getSourcePreview()
    • getOffendingToken

      public String getOffendingToken()
    • getErrorType

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

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object