ExceptionManager

A ExceptionManager is a registry of Handlers that contain code to log and transform exceptions in an appropriate way.

See also

Constructors

Link copied to clipboard
constructor(vararg handlers: ExceptionManager.Handler)

create a new ExceptionManager.

constructor(original: ExceptionManager)

create a new ExceptionManager on base of the specified original ExceptionManager.

Types

Link copied to clipboard
object Companion
Link copied to clipboard
interface Handler

A Handler contains logging and transformation code for specific exception classes. Logging methods are identified by signature of type

Properties

Link copied to clipboard

return the array of registered Handlers.

Functions

Link copied to clipboard

handles the specified exception with respect to registered handlers. The following logic is implemented:

Link copied to clipboard
fun register(handler: ExceptionManager.Handler, replace: Boolean = false)

registers the specified Handler in the registry by inspecting the public methods for the described patterns