Class FunctionalTypeOpException

  • All Implemented Interfaces:
    Serializable

    public class FunctionalTypeOpException
    extends InvalidOpException
    Exception thrown when an Op written as a Method does not conform to a functional Type (i.e. implementing an interface with a single abstract Method). This is not allowed, as if there are multiple methods, Ops will not know which method to call!
    Author:
    Gabriel Selzer
    See Also:
    Serialized Form
    • Constructor Detail

      • FunctionalTypeOpException

        public FunctionalTypeOpException​(Object op,
                                         Type fIface)
        Standard constructor.
        Parameters:
        op - An Op implementation
        fIface - the FunctionalInterface that the Op should conform to.
      • FunctionalTypeOpException

        public FunctionalTypeOpException​(Object op,
                                         Throwable cause)
        Constructor used when another Exception indicates an issue with the functional type
        Parameters:
        op - An Op implementation
        cause - the Throwable identifying a bad Op type.