Sets the error of the Task, throwing if the Task has already been completed.
(Exception error)
| 633 | * Sets the error of the Task, throwing if the Task has already been completed. |
| 634 | */ |
| 635 | public void setError(Exception error) { |
| 636 | if (!trySetError(error)) { |
| 637 | throw new IllegalStateException("Cannot set the error on a completed task."); |
| 638 | } |
| 639 | } |
| 640 | } |
| 641 | } |
no test coverage detected