StaticExceptionHandlerEntry

internal data class StaticExceptionHandlerEntry(val owner: Class<*>, val invoker: StaticExceptionInvokers, val priority: Int) : ExceptionHandlerEntry

Internal representation of a static exception handler.

A StaticExceptionHandlerEntry describes a @ExceptionHandler method declared as static (in Java) or as a @JvmStatic member on a Kotlin object/companion. Unlike InstanceExceptionHandlerEntry, it is not tied to a specific subscriber instance and therefore does not rely on weak references for lifecycle management.

Static exception handlers remain active until they are explicitly unregistered by the event bus.

Constructors

Link copied to clipboard
constructor(owner: Class<*>, invoker: StaticExceptionInvokers, priority: Int)

Properties

Link copied to clipboard
open override val invoker: StaticExceptionInvokers

the compiled StaticExceptionInvokers strategy used to invoke the underlying handler method.

Link copied to clipboard
val owner: Class<*>

the declaring class that owns the static exception handler method. Used to group and unregister static handlers from the same class.

Link copied to clipboard
open override val priority: Int

execution ordering hint; higher values are invoked before lower values when multiple handlers match the same failure.

Functions

Link copied to clipboard

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