Package graphql

Class InvalidSyntaxError

    • Constructor Detail

      • InvalidSyntaxError

        public InvalidSyntaxError​(SourceLocation sourceLocation,
                                  java.lang.String msg)
      • InvalidSyntaxError

        public InvalidSyntaxError​(java.util.List<SourceLocation> sourceLocations,
                                  java.lang.String msg)
      • InvalidSyntaxError

        public InvalidSyntaxError​(java.util.List<SourceLocation> sourceLocations,
                                  java.lang.String msg,
                                  java.lang.String sourcePreview,
                                  java.lang.String offendingToken)
    • Method Detail

      • getMessage

        public java.lang.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 java.util.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 java.lang.String getSourcePreview()
      • getOffendingToken

        public java.lang.String getOffendingToken()
      • toString

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

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object