public static ServiceExceptionConnect createAndRethrow(String msg, Throwable exn) { if (exn instanceof ServiceExceptionConnect) { return ((ServiceExceptionConnect) exn).rethrow(msg); } else { return new ServiceExceptionConnect(msg, exn); } } }
public static ServiceExceptionConnect createAndRethrow(String msg, Throwable exn) { if (exn instanceof ServiceExceptionConnect) { return ((ServiceExceptionConnect) exn).rethrow(msg); } else { return new ServiceExceptionConnect(msg, exn); } } }