Class MismatchedReturnTypeException

  • All Implemented Interfaces:
    Serializable

    public class MismatchedReturnTypeException
    extends RuntimeException
    Unchecked exception that indicates mismatch between an actual return type and a demanded return type.
    See Also:
    Serialized Form
    • Constructor Detail

      • MismatchedReturnTypeException

        MismatchedReturnTypeException​(String actualReturnTypeAsString,
                                      String demandedReturnTypeAsString)
        Constructs an instance of a MismatchedReturnTypeException with a template message.
        Parameters:
        actualReturnTypeAsString - - actual return type represented as a string
        demandedReturnTypeAsString - - demanded return type represented as a string