@PublicApi public class ExceptionWhileDataFetching extends java.lang.Object implements GraphQLError
GraphQLError.Builder<B extends GraphQLError.Builder<B>>| Constructor and Description |
|---|
ExceptionWhileDataFetching(ResultPath path,
java.lang.Throwable exception,
SourceLocation sourceLocation) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
ErrorType |
getErrorType() |
java.lang.Throwable |
getException() |
java.util.Map<java.lang.String,java.lang.Object> |
getExtensions() |
java.util.List<SourceLocation> |
getLocations() |
java.lang.String |
getMessage() |
java.util.List<java.lang.Object> |
getPath()
The graphql spec says that the (optional) path field of any error should be a list
of path entries https://spec.graphql.org/October2021/#sec-Handling-Field-Errors
|
int |
hashCode() |
java.lang.String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitnewError, toSpecificationpublic ExceptionWhileDataFetching(ResultPath path, java.lang.Throwable exception, SourceLocation sourceLocation)
public java.lang.Throwable getException()
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 java.util.List<java.lang.Object> getPath()
GraphQLErrorgetPath in interface GraphQLErrorpublic java.util.Map<java.lang.String,java.lang.Object> getExtensions()
getExtensions in interface GraphQLErrorpublic ErrorType getErrorType()
getErrorType in interface GraphQLErrorpublic java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object