Companion

object Companion

Companion object providing the extension that inspects a reflective Method and determines whether it represents a supported exception handler signature.

The extension property Method.exceptionSignatureKind analyzes:

  • the number of parameters,

  • their types (checking for Event and Throwable),

  • and their ordering.

If the method matches one of the supported shapes, a corresponding ExceptionSignatureKind value is returned; otherwise null indicates that the signature is not a valid exception handler.

Properties

Link copied to clipboard

Determines which ExceptionSignatureKind, if any, the receiver method conforms to.