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:
java.io.Serializable
- Direct Known Subclasses:
InvalidUnicodeSyntaxException
,MoreTokensSyntaxException
,ParseCancelledException
,ParseCancelledTooDeepException
,ParseCancelledTooManyCharsException
@PublicApi public class InvalidSyntaxException extends GraphQLException
This exception is thrown by theParser
if the graphql syntax is not valid- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
InvalidSyntaxException(java.lang.String msg, SourceLocation location, java.lang.String offendingToken, java.lang.String sourcePreview, java.lang.Exception cause)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SourceLocation
getLocation()
java.lang.String
getMessage()
java.lang.String
getOffendingToken()
java.lang.String
getSourcePreview()
InvalidSyntaxError
toInvalidSyntaxError()
-
-
-
Constructor Detail
-
InvalidSyntaxException
protected InvalidSyntaxException(java.lang.String msg, SourceLocation location, java.lang.String offendingToken, java.lang.String sourcePreview, java.lang.Exception cause)
-
-
Method Detail
-
toInvalidSyntaxError
public InvalidSyntaxError toInvalidSyntaxError()
-
getMessage
public java.lang.String getMessage()
- Overrides:
getMessage
in classjava.lang.Throwable
-
getLocation
public SourceLocation getLocation()
-
getSourcePreview
public java.lang.String getSourcePreview()
-
getOffendingToken
public java.lang.String getOffendingToken()
-
-