InstanceExceptionThrowableOnlyInvoker

Invoker for instance-bound exception handler methods that declare only a throwable parameter:

fun onFailure(t: T)

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.

Functions

Link copied to clipboard
abstract operator fun invoke(target: Any, throwable: Throwable)

Invokes the exception handler method.