Package graphql
Class UnresolvedTypeError
- java.lang.Object
-
- graphql.UnresolvedTypeError
-
- All Implemented Interfaces:
GraphQLError
,java.io.Serializable
@PublicApi public class UnresolvedTypeError extends java.lang.Object implements GraphQLError
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface graphql.GraphQLError
GraphQLError.Builder<B extends GraphQLError.Builder<B>>
-
-
Constructor Summary
Constructors Constructor Description UnresolvedTypeError(ResultPath path, ExecutionStepInfo info, UnresolvedTypeException exception)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
ErrorType
getErrorType()
UnresolvedTypeException
getException()
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 must be a list of path entries starting at the root of the response and ending with the field associated with the error https://spec.graphql.org/draft/#sec-Errors.Error-Result-Formatint
hashCode()
java.lang.String
toString()
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface graphql.GraphQLError
getExtensions, toSpecification
-
-
-
-
Constructor Detail
-
UnresolvedTypeError
public UnresolvedTypeError(ResultPath path, ExecutionStepInfo info, UnresolvedTypeException exception)
-
-
Method Detail
-
getException
public UnresolvedTypeException getException()
-
getMessage
public java.lang.String 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
public java.util.List<SourceLocation> 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
public ErrorType getErrorType()
- Specified by:
getErrorType
in interfaceGraphQLError
- Returns:
- an object classifying this error
-
getPath
public java.util.List<java.lang.Object> getPath()
Description copied from interface:GraphQLError
The graphql spec says that the (optional) path field of any error must be a list of path entries starting at the root of the response and ending with the field associated with the error https://spec.graphql.org/draft/#sec-Errors.Error-Result-Format- Specified by:
getPath
in interfaceGraphQLError
- Returns:
- the path in list format
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-