Package graphql.execution
Class UnresolvedTypeException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
graphql.GraphQLException
graphql.execution.UnresolvedTypeException
- All Implemented Interfaces:
Serializable
This is thrown if a
TypeResolver
fails to give back a concrete type
or provides a type that doesn't implement the given interface or union.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionUnresolvedTypeException
(GraphQLNamedOutputType interfaceOrUnionType) UnresolvedTypeException
(GraphQLNamedOutputType interfaceOrUnionType, GraphQLType providedType) UnresolvedTypeException
(String message, GraphQLNamedOutputType interfaceOrUnionType) Constructor to use a custom error message for an error that happened during type resolution. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
UnresolvedTypeException
Constructor to use a custom error message for an error that happened during type resolution.- Parameters:
message
- custom error message.interfaceOrUnionType
- expected type.
-
UnresolvedTypeException
-
UnresolvedTypeException
public UnresolvedTypeException(GraphQLNamedOutputType interfaceOrUnionType, GraphQLType providedType)
-
-
Method Details
-
getInterfaceOrUnionType
-