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. constHTTPError = container.get<HTTPErrorClass>('HTTPError'); // Getting access to the function. consthttpError = container.get<CreateHTTPErrorFn>('httpError');
A service provider that will register both the HTTPError and a generator function on the container.
HTTPError
will be the key for class, andhttpError
will be for the generator function.