EVENT_ONLY

Represents an exception handler method with a single event parameter:

fun onFailure(event: E)

The parameter must be an Event (or subtype).

These handlers are invoked whenever an exception occurs while processing any event of the declared type, regardless of what exception was thrown.

Properties

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun getEventClass(method: Method): Class<out Event>

Resolves the logical event type associated with this exception-handler signature.

Link copied to clipboard

Extracts the declared throwable parameter type from an exception–handler method, when applicable.