Exception Handler Entry With Throwable
Marker base type for exception handler entries that declare a throwable parameter in their method signature.
This is implemented by:
InstanceExceptionHandlerEntryWithThrowable for instance-bound handlers.
StaticExceptionHandlerEntryWithThrowable for static handlers.
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)istrue.
Handlers without a throwable parameter (i.e. (event: Event) signatures) are represented by plain ExceptionHandlerEntry instead.