Function errorInterceptor
- errorInterceptor(interceptor): ((classDefinition, methodName) => void)
-
Returns ((classDefinition, methodName) => void)
-
- (classDefinition, methodName): void
-
Parameters
-
classDefinition: Object | Function
-
methodName: string
Returns void
Decorator for an endpoint method that configures the type to use to intercept errors.
Overrides the controller error interceptor set by the
controllerErrorInterceptor
decorator, if any.Error interceptors instances are built using the InversifyJS IOC container for the current app.