Package jenkins.util
Interface ThrowingCallable<V,T extends Throwable>
- Type Parameters:
V- the return typeT- the checked exception type, or might beRuntimeException
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A task that returns a result and may throw an exception.
Similar to
Callable except that the exception type can be constrained.
Similar to Callable or NotReallyRoleSensitiveCallable except
- It is not
Serializable, which would cause SpotBugs to complain about captured local variables. - It does not have the
RoleSensitive.checkRoles(org.jenkinsci.remoting.RoleChecker)so it can be aFunctionalInterface.
ThrowingRunnable but returns a value.- Since:
- TODO
-
Method Summary
-
Method Details
-
call
Computes a result, or throws an exception if unable to do so.- Returns:
- computed result
- Throws:
T- if unable to compute a result
-