Package graphql
Class UnresolvedTypeError
java.lang.Object
graphql.UnresolvedTypeError
- All Implemented Interfaces:
GraphQLError
,Serializable
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface graphql.GraphQLError
GraphQLError.Builder<B extends GraphQLError.Builder<B>>
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionUnresolvedTypeError
(ResultPath path, ExecutionStepInfo info, UnresolvedTypeException exception) -
Method Summary
Modifier and TypeMethodDescriptionboolean
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-Errorsint
hashCode()
private String
mkMessage
(ResultPath path, UnresolvedTypeException exception, ExecutionStepInfo info) toString()
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface graphql.GraphQLError
getExtensions, toSpecification
-
Field Details
-
message
-
path
-
exception
-
-
Constructor Details
-
UnresolvedTypeError
public UnresolvedTypeError(ResultPath path, ExecutionStepInfo info, UnresolvedTypeException exception)
-
-
Method Details
-
mkMessage
private String mkMessage(ResultPath path, UnresolvedTypeException exception, ExecutionStepInfo info) -
getException
-
getMessage
- Specified by:
getMessage
in interfaceGraphQLError
- Returns:
- a description of the error intended for the developer as a guide to understand and correct the error
-
getLocations
- Specified by:
getLocations
in interfaceGraphQLError
- Returns:
- the location(s) within the GraphQL document at which the error occurred. Each
SourceLocation
describes the beginning of an associated syntax element
-
getErrorType
- Specified by:
getErrorType
in interfaceGraphQLError
- Returns:
- an object classifying this error
-
getPath
Description copied from interface:GraphQLError
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- Specified by:
getPath
in interfaceGraphQLError
- Returns:
- the path in list format
-
toString
-
equals
-
hashCode
public int hashCode()
-