public class InvalidSyntaxError extends java.lang.Object implements GraphQLError
GraphQLError.Builder<B extends GraphQLError.Builder<B>>
Constructor and Description |
---|
InvalidSyntaxError(java.util.List<SourceLocation> sourceLocations,
java.lang.String msg) |
InvalidSyntaxError(java.util.List<SourceLocation> sourceLocations,
java.lang.String msg,
java.lang.String sourcePreview,
java.lang.String offendingToken) |
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() |
java.lang.String |
getOffendingToken() |
java.lang.String |
getSourcePreview() |
int |
hashCode() |
java.lang.String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getExtensions, getPath, newError, toSpecification
public InvalidSyntaxError(SourceLocation sourceLocation, java.lang.String msg)
public InvalidSyntaxError(java.util.List<SourceLocation> sourceLocations, java.lang.String msg)
public InvalidSyntaxError(java.util.List<SourceLocation> sourceLocations, java.lang.String msg, java.lang.String sourcePreview, java.lang.String offendingToken)
public java.lang.String getMessage()
getMessage
in interface GraphQLError
public java.util.List<SourceLocation> getLocations()
getLocations
in interface GraphQLError
SourceLocation
describes the beginning of an associated syntax elementpublic java.lang.String getSourcePreview()
public java.lang.String getOffendingToken()
public ErrorType getErrorType()
getErrorType
in interface GraphQLError
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object