@Override public void onUncaughtException(Connection connection, Throwable error) { for (ConnectionObserver observer : observers) { observer.onUncaughtException(connection, error); } }
@Override public void onUncaughtException(Connection connection, Throwable error) { for (ConnectionObserver observer : observers) { observer.onUncaughtException(connection, error); } }
@Override public void onUncaughtException(Connection c, Throwable error) { sink.error(error); obs.onUncaughtException(c, error); } }
@Override public void onUncaughtException(Connection connection, Throwable error) { sink.error(error); obs.onUncaughtException(connection, error); }
@Override public void onUncaughtException(Connection c, Throwable error) { sink.error(error); obs.onUncaughtException(c, error); } }
@Override public void onUncaughtException(Connection connection, Throwable error) { owner().onUncaughtException(connection, error); }
@Override public void onUncaughtException(Connection connection, Throwable error) { sink.error(error); obs.onUncaughtException(connection, error); }
@Override public void onUncaughtException(Connection connection, Throwable error) { owner().onUncaughtException(connection, error); }
@Override final public void exceptionCaught(ChannelHandlerContext ctx, Throwable err) { Exceptions.throwIfJvmFatal(err); ChannelOperations<?, ?> ops = ChannelOperations.get(ctx.channel()); if (ops != null) { ops.onInboundError(err); } else { listener.onUncaughtException(Connection.from(ctx.channel()), err); } }
@Override final public void exceptionCaught(ChannelHandlerContext ctx, Throwable err) { Exceptions.throwIfJvmFatal(err); ChannelOperations<?, ?> ops = ChannelOperations.get(ctx.channel()); if (ops != null) { ops.onInboundError(err); } else { listener.onUncaughtException(Connection.from(ctx.channel()), err); } }
@Override protected void onInboundClose() { if (isInboundCancelled() || isInboundDisposed()) { return; } listener().onStateChange(this, HttpClientState.RESPONSE_INCOMPLETE); if (responseState == null) { if (markSentBody()) { listener().onUncaughtException(this, PrematureCloseException.BEFORE_RESPONSE_SENDING_REQUEST); } else { listener().onUncaughtException(this, PrematureCloseException.BEFORE_RESPONSE); } return; } super.onInboundError(PrematureCloseException.DURING_RESPONSE); }
@Override protected void onInboundClose() { if (isInboundCancelled() || isInboundDisposed()) { return; } listener().onStateChange(this, HttpClientState.RESPONSE_INCOMPLETE); if (responseState == null) { if (markSentBody()) { listener().onUncaughtException(this, PrematureCloseException.BEFORE_RESPONSE_SENDING_REQUEST); } else { listener().onUncaughtException(this, PrematureCloseException.BEFORE_RESPONSE); } return; } super.onInboundError(PrematureCloseException.DURING_RESPONSE); }
final boolean notRedirected(HttpResponse response) { if (isFollowRedirect() && followRedirectPredicate.test(this, this)) { if (log.isDebugEnabled()) { log.debug(format(channel(), "Received redirect location: {}"), response.headers() .entries() .toString()); } listener().onUncaughtException(this, new RedirectClientException(response.headers())); return false; } return true; }
final boolean notRedirected(HttpResponse response) { if (isFollowRedirect() && followRedirectPredicate.test(this, this)) { if (log.isDebugEnabled()) { log.debug(format(channel(), "Received redirect location: {}"), response.headers() .entries() .toString()); } listener().onUncaughtException(this, new RedirectClientException(response.headers())); return false; } return true; }
@Override protected void onOutboundError(Throwable err) { if(isPersistent() && responseState == null){ if (log.isDebugEnabled()) { log.debug(format(channel(), "Outbound error happened"), err); } listener().onUncaughtException(this, err); if (markSentBody()) { markPersistent(false); } terminate(); return; } super.onOutboundError(err); }
@Override protected void onOutboundError(Throwable err) { if(isPersistent() && responseState == null){ if (log.isDebugEnabled()) { log.debug(format(channel(), "Outbound error happened"), err); } listener().onUncaughtException(this, err); if (markSentBody()) { markPersistent(false); } terminate(); return; } super.onOutboundError(err); }
Throwable ex = inboundError; if (ex != null) { parent.listener.onUncaughtException(parent, ex);
Throwable ex = inboundError; if (ex != null) { parent.listener.onUncaughtException(parent, ex);