InstanceExceptionEventOnlyInvoker

Invoker for instance-bound exception handler methods that declare only an event parameter:

fun onFailure(event: E)

A handler using this signature is selected when the event being processed is an instance of E or any subtype, regardless of the throwable type.

These handlers act as event-scoped catch-alls: they run on any exception associated with the specified event type.

Functions

Link copied to clipboard
abstract operator fun invoke(target: Any, event: Event)

Invokes the exception handler method.