@Override public void exception(final NHttpClientConnection conn, final Exception ex) { if (ex instanceof HttpException) { this.handler.exception(conn, (HttpException) ex); } else if (ex instanceof IOException) { this.handler.exception(conn, (IOException) ex); } else { if (ex instanceof RuntimeException) { throw (RuntimeException) ex; } else { throw new Error("Unexpected exception: ", ex); } } }
@Override public void exception(final NHttpClientConnection conn, final Exception ex) { if (ex instanceof HttpException) { this.handler.exception(conn, (HttpException) ex); } else if (ex instanceof IOException) { this.handler.exception(conn, (IOException) ex); } else { if (ex instanceof RuntimeException) { throw (RuntimeException) ex; } else { throw new Error("Unexpected exception: ", ex); } } }
public void exception(NHttpClientConnection conn, IOException ex) { getState(conn).failed(ex); this.handler.exception(conn, ex); }
public void exception(NHttpClientConnection conn, HttpException ex) { getState(conn).failed(ex); this.handler.exception(conn, ex); }