UNPKG

@ganbarodigital/ts-lib-value-objects

Version:

Helps you create value objects and refined types for safer software

31 lines 1.29 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.UNIT_TEST_ERROR_TABLE = exports.UnitTestErrorTable = void 0; const v1_1 = require("@ganbarodigital/ts-lib-http-types/lib/v1"); const v1_2 = require("@ganbarodigital/ts-lib-packagename/lib/v1"); const PACKAGE_NAME = v1_2.packageNameFrom("@ganbarodigital/ts-lib-value-objects/lib/v2"); class UnitTestErrorTable { constructor() { this["never-a-branded-uuid"] = { packageName: PACKAGE_NAME, errorName: "never-a-branded-uuid", status: v1_1.httpStatusCodeFrom(500), detail: "value is not a branded uuid", }; this["never-a-flavoured-uuid"] = { packageName: PACKAGE_NAME, errorName: "never-a-flavoured-uuid", status: v1_1.httpStatusCodeFrom(500), detail: "value is not a flavoured uuid", }; this["never-adult-age"] = { packageName: PACKAGE_NAME, errorName: "never-adult-age", status: v1_1.httpStatusCodeFrom(500), detail: "value is lower than minimum adult age", }; } } exports.UnitTestErrorTable = UnitTestErrorTable; exports.UNIT_TEST_ERROR_TABLE = new UnitTestErrorTable(); //# sourceMappingURL=ErrorTable.js.map