public class InvalidSyntaxError extends java.lang.Object implements GraphQLError
| Constructor and Description |
|---|
InvalidSyntaxError(java.util.List<SourceLocation> sourceLocations,
java.lang.String msg) |
InvalidSyntaxError(SourceLocation sourceLocation,
java.lang.String msg) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
ErrorType |
getErrorType() |
java.util.List<SourceLocation> |
getLocations() |
java.lang.String |
getMessage() |
int |
hashCode() |
static InvalidSyntaxError |
toInvalidSyntaxError(java.lang.Exception parseException)
Creates an invalid syntax error object from an exception
|
java.lang.String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitgetExtensions, getPath, toSpecificationpublic InvalidSyntaxError(SourceLocation sourceLocation, java.lang.String msg)
public InvalidSyntaxError(java.util.List<SourceLocation> sourceLocations, java.lang.String msg)
public java.lang.String getMessage()
getMessage in interface GraphQLErrorpublic java.util.List<SourceLocation> getLocations()
getLocations in interface GraphQLErrorSourceLocation
describes the beginning of an associated syntax elementpublic ErrorType getErrorType()
getErrorType in interface GraphQLErrorpublic java.lang.String toString()
toString in class java.lang.Objectpublic static InvalidSyntaxError toInvalidSyntaxError(java.lang.Exception parseException)
parseException - the parse exceptionpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object