/** * {@inheritDoc} */ @Override public void exceptionCaught(NextFilter nextFilter, IoSession session, Throwable cause) throws Exception { filter.exceptionCaught(nextFilter, session, cause); }
/** * {@inheritDoc} */ @Override public void exceptionCaught(NextFilter nextFilter, IoSession session, Throwable cause) throws Exception { filter.exceptionCaught(nextFilter, session, cause); }
public void exceptionCaught(NextFilter nextFilter, IoSession session, Throwable cause) throws Exception { filter.exceptionCaught(nextFilter, session, cause); }
protected void callNextExceptionCaught(Entry entry, IoSession session, Throwable cause) { // Notify the related future. ConnectFuture future = (ConnectFuture) session .removeAttribute(SESSION_CREATED_FUTURE); if (future == null) { try { IoFilter filter = entry.getFilter(); NextFilter nextFilter = entry.getNextFilter(); filter.exceptionCaught(nextFilter, session, cause); } catch (Throwable e) { LOGGER .warn( "Unexpected exception from exceptionCaught handler.", e); } } else { // Please note that this place is not the only place that // calls ConnectFuture.setException(). session.close(true); future.setException(cause); } }
private void callNextExceptionCaught(Entry entry, IoSession session, Throwable cause) { // Notify the related future. ConnectFuture future = (ConnectFuture) session .removeAttribute(SESSION_CREATED_FUTURE); if (future == null) { try { IoFilter filter = entry.getFilter(); NextFilter nextFilter = entry.getNextFilter(); filter.exceptionCaught(nextFilter, session, cause); } catch (Throwable e) { LOGGER .warn( "Unexpected exception from exceptionCaught handler.", e); } } else { // Please note that this place is not the only place that // calls ConnectFuture.setException(). session.close(true); future.setException(cause); } }
private void callNextExceptionCaught(Entry entry, IoSession session, Throwable cause) { // Notify the related future. ConnectFuture future = (ConnectFuture) session.removeAttribute(SESSION_CREATED_FUTURE); if (future == null) { try { IoFilter filter = entry.getFilter(); NextFilter nextFilter = entry.getNextFilter(); filter.exceptionCaught(nextFilter, session, cause); } catch (Throwable e) { LOGGER.warn("Unexpected exception from exceptionCaught handler.", e); } } else { // Please note that this place is not the only place that // calls ConnectFuture.setException(). if (!session.isClosing()) { // Call the closeNow method only if needed session.closeNow(); } future.setException(cause); } }
private void callNextExceptionCaught(Entry entry, IoSession session, Throwable cause) { // Notify the related future. ConnectFuture future = (ConnectFuture) session.removeAttribute(SESSION_CREATED_FUTURE); if (future == null) { try { IoFilter filter = entry.getFilter(); NextFilter nextFilter = entry.getNextFilter(); filter.exceptionCaught(nextFilter, session, cause); } catch (Throwable e) { LOGGER.warn("Unexpected exception from exceptionCaught handler.", e); } } else { // Please note that this place is not the only place that // calls ConnectFuture.setException(). if (!session.isClosing()) { // Call the closeNow method only if needed session.closeNow(); } future.setException(cause); } }