private void fail(Callback callback, Throwable... suppressed) { FailedState failed = (FailedState)_state.get(); Throwable cause = failed.getCause(); for (Throwable t : suppressed) { if (t != cause) cause.addSuppressed(t); } callback.failed(cause); }
private void fail(Callback callback, Throwable... suppressed) { FailedState failed = (FailedState)_state.get(); Throwable cause = failed.getCause(); for (Throwable t : suppressed) { if (t != cause) cause.addSuppressed(t); } callback.failed(cause); }
private void fail(PendingState pending) { State current = _state.get(); if (current.getType()==StateType.FAILED) { FailedState failed=(FailedState)current; if (updateState(failed,__IDLE)) { pending.fail(failed.getCause()); return; } } throw new IllegalStateException(); }
private void fail(PendingState pending) { State current = _state.get(); if (current.getType()==StateType.FAILED) { FailedState failed=(FailedState)current; if (updateState(failed,__IDLE)) { pending.fail(failed.getCause()); return; } } throw new IllegalStateException(); }
private void fail(PendingState pending) { State current = _state.get(); if (current.getType()==StateType.FAILED) { FailedState failed=(FailedState)current; if (updateState(failed,__IDLE)) { pending.fail(failed.getCause()); return; } } throw new IllegalStateException(); }
private void fail(PendingState pending) { State current = _state.get(); if (current.getType()==StateType.FAILED) { FailedState failed=(FailedState)current; if (updateState(failed,__IDLE)) { pending.fail(failed.getCause()); return; } } throw new IllegalStateException(); }