Module org.scijava.ops.engine
Class FunctionalTypeOpException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.scijava.ops.engine.exceptions.InvalidOpException
-
- org.scijava.ops.engine.exceptions.impl.FunctionalTypeOpException
-
- All Implemented Interfaces:
Serializable
public class FunctionalTypeOpException extends InvalidOpException
Exception thrown when an Op written as aMethoddoes not conform to a functionalType(i.e. implementing an interface with a single abstractMethod). 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 Summary
Constructors Constructor Description FunctionalTypeOpException(Object op, Type fIface)Standard constructor.FunctionalTypeOpException(Object op, Throwable cause)Constructor used when anotherExceptionindicates an issue with the functional type
-
Method Summary
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
FunctionalTypeOpException
public FunctionalTypeOpException(Object op, Type fIface)
Standard constructor.- Parameters:
op- An Op implementationfIface- theFunctionalInterfacethat the Op should conform to.
-
-