@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(GraphQLOutputType interfaceOrUnionType) |
UnresolvedTypeException(GraphQLOutputType interfaceOrUnionType,
GraphQLType providedType) |
UnresolvedTypeException(java.lang.String message,
GraphQLOutputType interfaceOrUnionType)
Constructor to use a custom error message
for an error that happened during type resolution.
|
| Modifier and Type | Method and Description |
|---|---|
GraphQLOutputType |
getInterfaceOrUnionType() |
public UnresolvedTypeException(java.lang.String message,
GraphQLOutputType interfaceOrUnionType)
message - custom error message.interfaceOrUnionType - expected type.public UnresolvedTypeException(GraphQLOutputType interfaceOrUnionType)
public UnresolvedTypeException(GraphQLOutputType interfaceOrUnionType, GraphQLType providedType)
public GraphQLOutputType getInterfaceOrUnionType()