Class UnresolvedTypeException

All Implemented Interfaces:
Serializable

@PublicApi public class UnresolvedTypeException extends GraphQLException
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 Details

    • UnresolvedTypeException

      public UnresolvedTypeException(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 Details