Package graphql.parser
Class InvalidSyntaxException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
graphql.GraphQLException
graphql.parser.InvalidSyntaxException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
InvalidUnicodeSyntaxException,MoreTokensSyntaxException,ParseCancelledException,ParseCancelledTooDeepException,ParseCancelledTooManyCharsException
This exception is thrown by the
Parser if the graphql syntax is not valid- See Also:
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedInvalidSyntaxException(String msg, SourceLocation location, String offendingToken, String sourcePreview, Exception cause) -
Method Summary
Modifier and TypeMethodDescriptionMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
InvalidSyntaxException
protected InvalidSyntaxException(String msg, SourceLocation location, String offendingToken, String sourcePreview, Exception cause)
-
-
Method Details
-
toInvalidSyntaxError
-
getMessage
- Overrides:
getMessagein classThrowable
-
getLocation
-
getSourcePreview
-
getOffendingToken
-