in Bolts/src/bolts/Task.java [148:152]
public Exception getError() { synchronized (lock) { return error; } }