THROWABLE_ONLY

Represents an exception handler method with a single throwable parameter:

fun onFailure(throwable: T)

The parameter must be a Throwable (or subtype).

These handlers match purely on exception type and are invoked for any event when the thrown exception is compatible with the declared throwable parameter.

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.