192193194195196197198199200201202
|| e.getCause().getMessage().toLowerCase().contains("connection reset")) { return new ConnectionAbortedException(e); } } } return new TransportException(e); } else { // e.getCause().printStackTrace(); return new UnknownException(e); }
118119120121122123124125126127128
new TestOperation() { @Override public String execute(TestClient client, ConnectionContext context) throws ConnectionException, OperationException { throw new TransportException("He's dead jim"); } }, RunOnce.get()); Assert.fail(); } catch (Exception e) { }