EVENT_AND_THROWABLE

Represents an exception handler method with two parameters:

fun onFailure(event: E, throwable: T)

The first parameter must be an Event (or subtype), and the second must be a Throwable (or subtype).

This is the most specific form of exception handler. It is invoked only when both the event and the thrown exception match the declared parameter types.

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.