Interface ExceptionHandler<E extends Throwable>

Type Parameters:
E - The exception type

public interface ExceptionHandler<E extends Throwable>
A handler interface that DemuxingIoHandler forwards exceptionCaught events to. You have to register your handler with the type of exception you want to get notified using DemuxingIoHandler.addExceptionHandler(Class, ExceptionHandler).
  • Field Details

  • Method Details

    • exceptionCaught

      void exceptionCaught(IoSession session, E cause) throws Exception
      Invoked when the specific type of exception is caught from the specified session.
      Parameters:
      session - The current session
      cause - the exception's cause
      Throws:
      Exception - If we can't process the event