MCPcopy Index your code
hub / github.com/BoltsFramework/Bolts-Java / setError

Method setError

Bolts/src/bolts/Task.java:635–639  ·  view source on GitHub ↗

Sets the error of the Task, throwing if the Task has already been completed.

(Exception error)

Source from the content-addressed store, hash-verified

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}

Callers 3

forErrorMethod · 0.80
runMethod · 0.80
thenMethod · 0.80

Calls 1

trySetErrorMethod · 0.95

Tested by

no test coverage detected