ExceptionHandlerEntryWithThrowable

Marker base type for exception handler entries that declare a throwable parameter in their method signature.

This is implemented by:

Handlers represented by this type correspond to @ExceptionHandler methods with one of the following shapes:

  • (event: Event, throwable: Throwable)

  • (throwable: Throwable)

The throwableType records the declared throwable parameter type (e.g. IOException, NullPointerException, Throwable). At dispatch time, the event system uses this to perform polymorphic matching:

  • a handler is considered compatible if throwableType.isInstance(actualThrowable) is true.

Handlers without a throwable parameter (i.e. (event: Event) signatures) are represented by plain ExceptionHandlerEntry instead.

Inheritors

Properties

Link copied to clipboard

strategy object responsible for invoking the underlying exception handler method when an event handler fails.

Link copied to clipboard
abstract val priority: Int

execution ordering hint; larger values are dispatched first.

Link copied to clipboard
abstract val throwableType: Class<out Throwable>

the concrete throwable type declared on the handler method. Used for filtering based on the actual thrown exception.

Functions

Link copied to clipboard

Computes a relative "specificity" rank for this exception handler entry.