@PublicApi public class UnresolvedTypeException extends GraphQLException
TypeResolver
fails to give back a concrete type
or provides a type that doesn't implement the given interface or union.Constructor and 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.
|
Modifier and Type | Method and Description |
---|---|
GraphQLNamedOutputType |
getInterfaceOrUnionType() |
public UnresolvedTypeException(java.lang.String message, GraphQLNamedOutputType interfaceOrUnionType)
message
- custom error message.interfaceOrUnionType
- expected type.public UnresolvedTypeException(GraphQLNamedOutputType interfaceOrUnionType)
public UnresolvedTypeException(GraphQLNamedOutputType interfaceOrUnionType, GraphQLType providedType)
public GraphQLNamedOutputType getInterfaceOrUnionType()