Builds a typed exception catalog from a set of ExceptionEntry definitions.
Each key in definitions becomes a factory function that creates a LocalizedHttpException pre-filled with the right translations, HTTP status, and error key (namespace.key).
definitions
namespace.key
Namespace, default locale, and exception definitions.
An object whose keys mirror definitions, each a factory function.
Builds a typed exception catalog from a set of ExceptionEntry definitions.
Each key in
definitionsbecomes a factory function that creates a LocalizedHttpException pre-filled with the right translations, HTTP status, and error key (namespace.key).