Function: ErrorHandler()
Function: ErrorHandler()
function ErrorHandler<T>(options): ClassDecorator;
ErrorHandler decorator to set imperative configuration.
Type Parameters
T
T
extends ClassType
= ClassType
Parameters
options
The ErrorHandler options.
Returns
ClassDecorator
A class decorator function that sets the metadata using the provided options.
Example
@ErrorHandler({ error: ['Error', 'RuntimeError'] })
class MyClass {
// ...
}