register

inline fun <C, T : Throwable> ExceptionController<C>.register(decorator: ExceptionHandlerRegistration.BuilderDecorator<C, T>): ExceptionController<C>

Decorates a registration builder using the given decorator and registers the result.

The ordering matters when multiple handlers are registered tor the same exception type. The last registered handler will get priority.

Return

this exception controller