/** * Rethrows an exception to record the full stack trace, both caller * and callee. */ @Override public ServiceExceptionNotFound rethrow(String msg) { return new ServiceExceptionNotFound(msg, this); } }
@Override public void query(HeadersAmp headers, ResultChain<?> result, StubAmp actor, Object[] args) { ServiceExceptionNotFound exn = new ServiceExceptionNotFound(errorMsg()); exn.fillInStackTrace(); result.fail(exn); //System.out.println("QR-A: " + exn + " " + queryRef); //queryRef.complete("OK"); }
private ServiceExceptionNotFound serviceNotFound() { throw new ServiceExceptionNotFound(L.l("'{0}' is an unknown service in {1}", _address, manager())); }
@Override public void query(HeadersAmp headers, ResultChain<?> result, StubAmp actor, Object []args) { result.fail(new ServiceExceptionNotFound( L.l("{0} is an unknown service", _serviceRef))); }
@Override public void query(HeadersAmp headers, ResultChain<?> result, StubAmp actor, Object[] args) { if (! _stub.isClosed()) { String msg = L.l("{0} is an unknown method in {1}", _methodName, _stub.name()); result.fail(new ServiceExceptionMethodNotFound(msg)); } else { String msg = L.l("{0} is an unknown service", _stub); result.fail(new ServiceExceptionNotFound(msg)); } }