register

fun register(throwableClass: Class<out Throwable>, recoverableType: RecoverableType)

Registers a recoverable type classification for an exception class.

This method associates an exception class with a specific RecoverableType, overriding any default classification for that exception type.

Parameters

throwableClass

the exception class to classify

recoverableType

the recoverable classification for this exception type