@Override public void exceptionCaught(ChannelHandlerContext ctx, ExceptionEvent e) throws Exception { Throwable cause = e.getCause(); if (cause instanceof SpdyProtocolException) { issueSessionError(ctx, e.getChannel(), null, SpdySessionStatus.PROTOCOL_ERROR); } super.exceptionCaught(ctx, e); }
exceptionCaught(ctx, (ExceptionEvent) e); } else { ctx.sendUpstream(e);
@Override public void exceptionCaught(ChannelHandlerContext ctx, ExceptionEvent e) throws Exception { node = null; super.exceptionCaught(ctx, e); } }
@Override public void exceptionCaught(ChannelHandlerContext ctx, ExceptionEvent e) throws Exception { exceptionsCaught.incrementAndGet(); super.exceptionCaught(ctx, e); } }
@Override public void exceptionCaught(ChannelHandlerContext ctx, ExceptionEvent e) throws Exception { e.getChannel().close(); super.exceptionCaught(ctx, e); }
@Override public void exceptionCaught(ChannelHandlerContext ctx, ExceptionEvent e) throws Exception { logger.warn("Exception caught in channel " + e.getChannel() + ": " + " " + e.getCause().getClass().getName() + " " + e.getCause().getMessage(), e.getCause()); logger.debug("Exception caught in channel", e.getCause()); super.exceptionCaught(ctx, e); }
@Override public void exceptionCaught(ChannelHandlerContext ctx, ExceptionEvent e) throws Exception { if (e.getCause() instanceof JsonParseException) { BaseTransport.respond(e.getChannel(), HttpResponseStatus.INTERNAL_SERVER_ERROR, "Broken JSON encoding."); } else if (e.getCause() instanceof SessionHandler.NotFoundException) { BaseTransport.respond(e.getChannel(), HttpResponseStatus.NOT_FOUND, "Session not found. Cannot send data to non-existing session."); } else { super.exceptionCaught(ctx, e); } } }
@Override public void exceptionCaught(ChannelHandlerContext ctx, ExceptionEvent e) throws Exception { if (e.getCause() instanceof ReadTimeoutException) { if (ctx.getAttachment() != null) { Connection c = (Connection) ctx.getAttachment(); if (c.getAttachment() == null) { ctx.getChannel().close(); } } return; } if (e.getCause() instanceof TooLongFrameException) { ctx.getChannel().close(); return; } if (e.getCause() instanceof ClosedChannelException) { return; } if (e.getCause() instanceof IOException) { logger.debug("", e); ctx.getChannel().close(); return; } if (logger.isDebugEnabled()) logger.debug("", e); super.exceptionCaught(ctx, e); }