INNER CODE UNIT · Java
addThrowable
uber/AutoDispose · autodispose/src/main/java/autodispose2/AtomicThrowable.java:40
public boolean addThrowable(Throwable t) {
return ExceptionHelper.addThrowable(this, t);
}
/**
* Atomically terminate the container and return the contents of the last
* non-terminal Throwable of it.
*
* @return the last Throwable
*/
@Nullable public Throwable terminate() {
return ExceptionHelper.terminate(this);
}
}