@PublicApi public class ExceptionWhileDataFetching extends Object implements GraphQLError
Constructor and Description |
---|
ExceptionWhileDataFetching(ExecutionPath path,
Throwable exception,
SourceLocation sourceLocation) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
ErrorType |
getErrorType() |
Throwable |
getException() |
Map<String,Object> |
getExtensions() |
List<SourceLocation> |
getLocations() |
String |
getMessage() |
List<Object> |
getPath()
The graphql spec says that the (optional) path field of any error should be a list
of path entries - http://facebook.github.io/graphql/#sec-Errors
|
int |
hashCode() |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
toSpecification
public ExceptionWhileDataFetching(ExecutionPath path, Throwable exception, SourceLocation sourceLocation)
public Throwable getException()
public String getMessage()
getMessage
in interface GraphQLError
public List<SourceLocation> getLocations()
getLocations
in interface GraphQLError
SourceLocation
describes the beginning of an associated syntax elementpublic List<Object> getPath()
GraphQLError
getPath
in interface GraphQLError
public Map<String,Object> getExtensions()
getExtensions
in interface GraphQLError
public ErrorType getErrorType()
getErrorType
in interface GraphQLError
Copyright © 2019. All rights reserved.