@Override public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) throws Exception { if (cause instanceof TooLongFrameException) { } super.exceptionCaught(ctx, cause); }
@Override public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) throws Exception { if (cause instanceof TooLongFrameException) { } super.exceptionCaught(ctx, cause); }
@Override public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) throws Exception { logger.trace(format(ctx, "EXCEPTION: " + cause), cause); super.exceptionCaught(ctx, cause); }
@Override public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) throws Exception { SettableFuture<HttpResponse> responseFuture = ctx.channel().attr(RESPONSE_FUTURE).get(); if (!responseFuture.isDone()) { responseFuture.setException(new RuntimeException("Exception caught before valid response has been received", cause)); } super.exceptionCaught(ctx, cause); } }
@Override public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) throws Exception { responseState.sendOnError(cause); super.exceptionCaught(ctx, cause); }
@Override public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) throws Exception { super.exceptionCaught(ctx, cause); }
@Override public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) throws Exception { log.error("Uncaught exception on connection " + connectionName, cause); super.exceptionCaught(ctx, cause); }
@Override public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) throws Exception { SettableFuture<HttpResponse> responseFuture = ctx.channel().attr(RESPONSE_FUTURE).get(); if (!responseFuture.isDone()) { responseFuture.setException(new RuntimeException("Exception caught before valid response has been received", cause)); } super.exceptionCaught(ctx, cause); } }
@Override public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) throws Exception { if (cause instanceof SSLException) { sslCompletionStatus.onError(cause); } super.exceptionCaught(ctx, cause); }
@Override public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) throws Exception { log.debugf(cause, "%s exception-caught", this.name); super.exceptionCaught(ctx, cause); }
@Override public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) throws Exception { logger.trace(format(ctx, "EXCEPTION: " + cause), cause); super.exceptionCaught(ctx, cause); }
@Override public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) throws Exception { stopAndRecordLatency(); super.exceptionCaught(ctx, cause); }
@Override public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) throws Exception { stopAndRecordLatency(); super.exceptionCaught(ctx, cause); }
@Override public void exceptionCaught(ChannelHandlerContext ctx, Throwable ee) throws Exception { String message = "Exception Caught while communicating to "; try { message += ((InetSocketAddress) ctx.channel().remoteAddress()).getHostName(); message += ee.getCause(); printInfo(message); } catch (Throwable t) { } printInfo("EventProducerSessionHandler -> exceptionCaught" + ee.toString()); super.exceptionCaught(ctx, ee); }
@Override public void exceptionCaught(ChannelHandlerContext ctx, Throwable ee) throws Exception { String message = "Exception Caught while communicating to "; try { message += ((InetSocketAddress) ctx.channel().remoteAddress()).getHostName(); message += ee.getCause(); printInfo(message); } catch (Throwable t) { } printInfo("EventProducerSessionHandler -> exceptionCaught" + ee.toString()); super.exceptionCaught(ctx, ee); }
super.exceptionCaught(ctx, cause);
@Override public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) throws Exception { LOGGER.error( cause.getLocalizedMessage(), cause); AutoFlushWriterChannelQueue queue = m_channelQueue.remove(ctx.channel()); if (queue == null) return; MessageEvent[] events = queue.get(); if (events == null) return; for (int i=0; i < events.length; i++) { MessageEvent ev = events[i]; Promise promise = ev.getPromise(); if (promise != null) promise.setFailure(cause); ((ByteBuf) ev.getMsg()).release(); } if (queue != null) { queue.clear(); } super.exceptionCaught(ctx, cause); }