public static ServiceException createAndRethrow(String msg, Throwable exn) { ServiceException exn1; if (exn instanceof ServiceException) { exn1 = ((ServiceException) exn).rethrow(msg); } else { exn1 = new ServiceExceptionExecution(msg, exn); } exn1.fillInStackTrace(); return exn1; }
@Override protected void complete() { if (_result.isFuture()) { _result.completeFuture(this, null); } else { completeFuture(null); } }
@Override protected void complete() { if (_result.isFuture()) { _result.completeFuture(this, null); } else { completeFuture(null); } }
@Override public <V extends U> ResultFork<V> branch() { validateBuilder(); ResultFork<V> resultFork = new ResultFork<>(this); _forkList.add(resultFork); super.addFork(); return resultFork; }
public static ServiceException createAndRethrow(Throwable exn) { ServiceException exn1; if (exn instanceof ServiceException) { exn1 = ((ServiceException) exn).rethrow(); } else { exn1 = new ServiceExceptionExecution(exn); } exn1.fillInStackTrace(); return exn1; }