@return The error for the task, if set. null otherwise.
()
| 146 | * @return The error for the task, if set. {@code null} otherwise. |
| 147 | */ |
| 148 | public Exception getError() { |
| 149 | synchronized (lock) { |
| 150 | return error; |
| 151 | } |
| 152 | } |
| 153 | |
| 154 | /** |
| 155 | * Blocks until the task is complete. |
no outgoing calls