Package graphql
Class InvalidSyntaxError
java.lang.Object
graphql.InvalidSyntaxError
- All Implemented Interfaces:
GraphQLError,Serializable
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface graphql.GraphQLError
GraphQLError.Builder<B extends GraphQLError.Builder<B>> -
Constructor Summary
ConstructorsConstructorDescriptionInvalidSyntaxError(SourceLocation sourceLocation, String msg) InvalidSyntaxError(List<SourceLocation> sourceLocations, String msg) InvalidSyntaxError(List<SourceLocation> sourceLocations, String msg, String sourcePreview, String offendingToken) -
Method Summary
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface graphql.GraphQLError
getExtensions, getPath, toSpecification
-
Constructor Details
-
InvalidSyntaxError
-
InvalidSyntaxError
-
InvalidSyntaxError
public InvalidSyntaxError(List<SourceLocation> sourceLocations, String msg, String sourcePreview, String offendingToken)
-
-
Method Details
-
getMessage
- Specified by:
getMessagein interfaceGraphQLError- Returns:
- a description of the error intended for the developer as a guide to understand and correct the error
-
getLocations
- Specified by:
getLocationsin interfaceGraphQLError- Returns:
- the location(s) within the GraphQL document at which the error occurred. Each
SourceLocationdescribes the beginning of an associated syntax element
-
getSourcePreview
-
getOffendingToken
-
getErrorType
- Specified by:
getErrorTypein interfaceGraphQLError- Returns:
- an object classifying this error
-
toString
-
equals
-
hashCode
public int hashCode()
-