private T getResultValue() { if (_exn != null) { throw ServiceException.createAndRethrow(_exn); } else { return _value; } }
public void load(Cursor cursor, T entity) { try { Objects.requireNonNull(cursor); Objects.requireNonNull(entity); load(cursor, entity, false); } catch (RuntimeException e) { throw e; } catch (Exception e) { throw ServiceException.createAndRethrow(e); } }
public T peek(T defaultValue) { // flush any pending messages // ServiceRef.flushOutbox(); if (! isDone()) { return defaultValue; } else if (_exn != null) { throw ServiceException.createAndRethrow(_exn); } else { return _value; } }
/** * Calls method handle upon failure to establish a pipe passing null and * exception as arguments to the handle method call. * * @param exn exception that prevented establishign of a pipe */ @Override default void fail(Throwable exn) { try { handle(null, exn); } catch (RuntimeException e) { throw e; } catch (Error e) { throw e; } catch (Throwable e) { throw ServiceException.createAndRethrow(e); } }
throw ServiceException.createAndRethrow(e.getCause()); } catch (Throwable e) { throw ServiceException.createAndRethrow(e); } finally {
throw ServiceException.createAndRethrow(_exception);
String msg = L.l("Failed login.\n {0}", e); throw ServiceException.createAndRethrow(msg, e); } finally {