protected void exceptionCaught ( IoSession session , Throwable cause ) { log . error ( "Unhandled exception for: " + String . valueOf ( session ) , cause ) ; if ( this . disconnectOnException ) { this . _disconnect ( ) ; } }
Called when an exception occurs on the session