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:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final SourceLocationprivate final Stringprivate final Stringprivate final String -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedInvalidSyntaxException(String msg, SourceLocation location, String offendingToken, String sourcePreview, Exception cause) -
Method Summary
Modifier and TypeMethodDescriptionMethods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
message
-
sourcePreview
-
offendingToken
-
location
-
-
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
-