Instance Exception Throwable Only Invoker
Invoker for instance-bound exception handler methods that declare only a throwable parameter:
fun onFailure(t: T)Content copied to clipboard
A handler using this signature is selected when the thrown exception is an instance of T or any subtype, regardless of which event was being processed at the time.
These handlers are useful for global or type-specific exception handling, such as catching all IOException instances across all event types.