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:
java.io.Serializable
@PublicApi public class UnresolvedTypeException extends GraphQLException
This is thrown if aTypeResolver
fails to give back a concrete type or provides a type that doesn't implement the given interface or union.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UnresolvedTypeException(GraphQLNamedOutputType interfaceOrUnionType)
UnresolvedTypeException(GraphQLNamedOutputType interfaceOrUnionType, GraphQLType providedType)
UnresolvedTypeException(java.lang.String message, GraphQLNamedOutputType interfaceOrUnionType)
Constructor to use a custom error message for an error that happened during type resolution.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GraphQLNamedOutputType
getInterfaceOrUnionType()
-
-
-
Constructor Detail
-
UnresolvedTypeException
public UnresolvedTypeException(java.lang.String message, GraphQLNamedOutputType interfaceOrUnionType)
Constructor to use a custom error message for an error that happened during type resolution.- Parameters:
message
- custom error message.interfaceOrUnionType
- expected type.
-
UnresolvedTypeException
public UnresolvedTypeException(GraphQLNamedOutputType interfaceOrUnionType)
-
UnresolvedTypeException
public UnresolvedTypeException(GraphQLNamedOutputType interfaceOrUnionType, GraphQLType providedType)
-
-
Method Detail
-
getInterfaceOrUnionType
public GraphQLNamedOutputType getInterfaceOrUnionType()
-
-