InstanceExceptionHandlerEntry

internal data class InstanceExceptionHandlerEntry(val target: WeakReference<Any>, val invoker: InstanceExceptionInvokers, val priority: Int) : ExceptionHandlerEntry

Internal representation of an instance-bound exception handler.

An InstanceExceptionHandlerEntry binds a discovered @ExceptionHandler method to a specific subscriber object. The subscriber is held via a WeakReference, allowing it to be garbage-collected without requiring an explicit unsubscribe call. When the target is collected, the entry is treated as invalid and can be pruned during normal cache maintenance.

Constructors

Link copied to clipboard
constructor(target: WeakReference<Any>, invoker: InstanceExceptionInvokers, priority: Int)

Properties

Link copied to clipboard

the compiled InstanceExceptionInvokers strategy used to invoke the handler on target.

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.

Link copied to clipboard

a weak reference to the subscriber instance that owns the exception handler method.

Functions

Link copied to clipboard

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