exceptionCaught

open override fun exceptionCaught(session: Session<R>, packet: IncomingGameMessage, cause: Throwable)

Triggered whenever an throwable is caught when invoking the incoming game message consumers for all the packets that came in.

Parameters

session

the session which triggered the exception

packet

the incoming game message that failed to be processed

cause

the throwable being caught. Note that because this catches throwables, it will also catch errors, which likely should be propagated further.