Variable httpErrorProviderConst

httpErrorProvider: Resource<"provider", "register", ProviderRegisterFn<Jimpex>> = ...

A service provider that will register both the HTTPError and a generator function on the container. HTTPError will be the key for class, and httpError will be for the generator function.

Example

// Register it on the container
container.register(httpErrorProvider);
// Getting access to the class.
const HTTPError = container.get<HTTPErrorClass>('HTTPError');
// Getting access to the function.
const httpError = container.get<CreateHTTPErrorFn>('httpError');

Generated using TypeDoc