Class UnresolvedTypeException

  • All Implemented Interfaces:
    java.io.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:
    Serialized Form
    • 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.