rc-js-util
Version:
A collection of TS and C++ utilities to help writing performant and correct applications, achieved through strict typing and (removable) invariant checking.
12 lines • 374 B
JavaScript
import { getNestedErrorCtor } from "./nested-error-factory.js";
import { fpIdentity } from "../fp/impl/fp-identity.js";
const config = {
getTxFallback: fpIdentity,
defaultError: "An unknown error occurred.",
};
/**
* @public
* A non-localized {@link INestedError}.
*/
export const NestedError = getNestedErrorCtor(config);
//# sourceMappingURL=nested-error.js.map