public ServiceException rethrow(String msg) { ServiceException exn = new ServiceException(msg, this); exn.fillInStackTrace(); return exn; } }
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; }
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; }
@Override public void query(HeadersAmp headers, ResultChain<?> result, StubAmp actor, Object []args) { Object bean = actor.bean(); if (log.isLoggable(Level.FINER)) { log.finest("amp-send to stream " + name() + "[" + bean + "] " + toList(args)); } ServiceException exn = new ServiceException(L.l(bean + "." + name() + " is a stream method")); exn.fillInStackTrace(); result.fail(exn); }
@Override public void query(HeadersAmp headers, ResultChain<?> result, StubAmp actor, Object []args) { Object bean = actor.bean(); if (log.isLoggable(Level.FINER)) { log.finest("amp-send to stream " + name() + "[" + bean + "] " + toList(args)); } ServiceException exn = new ServiceException(L.l(bean + "." + name() + " is a stream method")); exn.fillInStackTrace(); result.fail(exn); }
@Override public void query(HeadersAmp headers, ResultChain<?> result, StubAmp actor, Object []args) { Object bean = actor.bean(); if (log.isLoggable(Level.FINER)) { log.finest("amp-send to stream " + name() + "[" + bean + "] " + toList(args)); } ServiceException exn = new ServiceException(L.l(bean + "." + name() + " is a stream method")); exn.fillInStackTrace(); result.fail(exn); }
address(), serverId)); exn.fillInStackTrace();