@microlambda/errors
Advanced tools
Sorry, the diff of this file is not supported yet
@@ -31,3 +31,8 @@ export declare enum MilaErrorCode { | ||
| ERROR_DOWNLOADING_ARTIFACTS = "MILA0029", | ||
| ARTIFACTS_INTEGRITY_CHECK_FAILED = "MILA0030" | ||
| ARTIFACTS_INTEGRITY_CHECK_FAILED = "MILA0030", | ||
| UNABLE_TO_LOAD_SECRET_VALUE = "MILA0031", | ||
| SECRET_ALREADY_EXISTS = "MILA0032", | ||
| NOT_A_SECRET = "MILA0033", | ||
| SSM_PARAMETER_ALREADY_EXISTS = "MILA0034", | ||
| NOT_A_SSM_PARAMETER = "MILA0035" | ||
| } |
@@ -36,3 +36,8 @@ "use strict"; | ||
| MilaErrorCode["ARTIFACTS_INTEGRITY_CHECK_FAILED"] = "MILA0030"; | ||
| })(MilaErrorCode = exports.MilaErrorCode || (exports.MilaErrorCode = {})); | ||
| MilaErrorCode["UNABLE_TO_LOAD_SECRET_VALUE"] = "MILA0031"; | ||
| MilaErrorCode["SECRET_ALREADY_EXISTS"] = "MILA0032"; | ||
| MilaErrorCode["NOT_A_SECRET"] = "MILA0033"; | ||
| MilaErrorCode["SSM_PARAMETER_ALREADY_EXISTS"] = "MILA0034"; | ||
| MilaErrorCode["NOT_A_SSM_PARAMETER"] = "MILA0035"; | ||
| })(MilaErrorCode || (exports.MilaErrorCode = MilaErrorCode = {})); | ||
| //# sourceMappingURL=mila-error-code.js.map |
@@ -5,2 +5,4 @@ "use strict"; | ||
| class MilaError extends Error { | ||
| code; | ||
| originalError; | ||
| constructor(code, message, originalError) { | ||
@@ -7,0 +9,0 @@ super(message); |
+4
-1
| { | ||
| "name": "@microlambda/errors", | ||
| "version": "1.0.0-alpha.31", | ||
| "version": "1.0.0-rc.0", | ||
| "description": "Microlambda generic error management", | ||
@@ -9,2 +9,5 @@ "author": "Mario Arnautou", | ||
| }, | ||
| "scripts": { | ||
| "build-runner": "npx tsc" | ||
| }, | ||
| "license": "MIT", | ||
@@ -11,0 +14,0 @@ "main": "lib/index.js", |
5470
12.21%9
12.5%113
11.88%