public class RoleViolationException
extends java.lang.Exception
If the associated task:
getResult()
method will throw IllegalStateException
.getResult()
method will return the result of the task.getResult()
method will throw an ExecutionException
wrapping the original failure. The same exception will also be attached as a suppressed exception of this
RoleViolationException
.Modifier and Type | Method and Description |
---|---|
<R> R |
getResult()
Return the result of the associated role task execution.
|
public <R> R getResult() throws java.util.concurrent.ExecutionException, java.lang.IllegalStateException
If the associated task completed normally then the result will be returned. If the the task completed
exceptionally then an ExecutionException
will be thrown wrapping the exception thrown by the task.
R
- unbound result parameterjava.util.concurrent.ExecutionException
- if the associated task failedjava.lang.IllegalStateException
- if the associated task was not executed