@futdevpro/fsm-dynamo 1.5.59 → 1.5.60
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/_constants/error-defaults.const.d.ts +1 -1
- package/lib/_constants/error-defaults.const.js +2 -2
- package/lib/_models/control-models/error.control-model.d.ts +4 -0
- package/lib/_models/control-models/error.control-model.d.ts.map +1 -1
- package/lib/_models/control-models/error.control-model.js +36 -13
- package/lib/_models/control-models/error.control-model.js.map +1 -1
- package/lib/_models/control-models/error.control-model.spec.js +24 -24
- package/lib/_models/control-models/error.control-model.spec.js.map +1 -1
- package/lib/tsconfig.tsbuildinfo +5 -5
- package/package.json +1 -1
- package/src/_constants/error-defaults.const.ts +1 -1
- package/src/_models/control-models/error.control-model.spec.ts +25 -25
- package/src/_models/control-models/error.control-model.ts +44 -14
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
3
|
+
exports.dynamo_error_default = void 0;
|
|
4
|
+
exports.dynamo_error_default = {
|
|
5
5
|
errorCode: 'NO-ERROR-CODE',
|
|
6
6
|
message: 'NO-ERROR-MESSAGE',
|
|
7
7
|
userMessage: 'MISSING-ERROR-USER-MESSAGE',
|
|
@@ -4,9 +4,11 @@ export declare class Dynamo_Error extends Dynamo_Metadata {
|
|
|
4
4
|
readonly flag = "DYNAMO-ERROR-OBJECT-v2";
|
|
5
5
|
_errorCode: string;
|
|
6
6
|
_errorCodes: string[];
|
|
7
|
+
/** contains all sub error messages, in reversed order */
|
|
7
8
|
_message: string;
|
|
8
9
|
_messages: string[];
|
|
9
10
|
__userMessage: string;
|
|
11
|
+
/** contains all sub error messages, in reversed order */
|
|
10
12
|
__userMessages: string[];
|
|
11
13
|
___handled: boolean;
|
|
12
14
|
___status: number;
|
|
@@ -35,6 +37,8 @@ export declare class Dynamo_Error extends Dynamo_Metadata {
|
|
|
35
37
|
__lastModifiedBy?: string;
|
|
36
38
|
__v?: number;
|
|
37
39
|
});
|
|
40
|
+
getErrorSimplified(): Dynamo_Error;
|
|
41
|
+
getErrorsFlat(): Dynamo_Error;
|
|
38
42
|
}
|
|
39
43
|
/**
|
|
40
44
|
* Returns the average of two numbers.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"error.control-model.d.ts","sourceRoot":"","sources":["../../../src/_models/control-models/error.control-model.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,oCAAoC,CAAC;AAErE,oBAAY,OAAO,GAAG,YAAY,CAAC;AAEnC,qBAAa,YAAa,SAAQ,eAAe;IAC/C,QAAQ,CAAC,IAAI,4BAA4B;IAEzC,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,EAAE,CAAM;IAE3B,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,EAAE,CAAM;IAEzB,aAAa,EAAE,MAAM,CAAC;IACtB,cAAc,EAAE,MAAM,EAAE,CAAM;IAE9B,UAAU,EAAE,OAAO,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAElB,SAAS,EAAE,MAAM,CAAC;IAClB,eAAe,EAAE,MAAM,CAAC;IACxB,gBAAgB,EAAE,MAAM,CAAC;IAEzB,KAAK,EAAE,KAAK,GAAG,YAAY,CAAC;IAC5B,MAAM,EAAE,CAAC,KAAK,GAAG,YAAY,CAAC,EAAE,CAAM;gBAGpC,GAAG,CAAC,EAAE;QACJ,GAAG,CAAC,EAAE,MAAM,CAAC;QAEb,OAAO,CAAC,EAAE,OAAO,CAAC;QAClB,MAAM,CAAC,EAAE,MAAM,CAAC;QAEhB,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,cAAc,CAAC,EAAE,OAAO,CAAC;QAEzB,KAAK,CAAC,EAAE,KAAK,GAAG,YAAY,CAAC;QAE7B,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,aAAa,CAAC,EAAE,MAAM,CAAC;QAEvB,SAAS,CAAC,EAAE,OAAO,CAAC;QACpB,GAAG,CAAC,EAAE,OAAO,CAAC;QAEd,SAAS,CAAC,EAAE,IAAI,CAAC;QACjB,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,cAAc,CAAC,EAAE,IAAI,CAAC;QACtB,gBAAgB,CAAC,EAAE,MAAM,CAAC;QAC1B,GAAG,CAAC,EAAE,MAAM,CAAC;KACd;
|
|
1
|
+
{"version":3,"file":"error.control-model.d.ts","sourceRoot":"","sources":["../../../src/_models/control-models/error.control-model.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,oCAAoC,CAAC;AAErE,oBAAY,OAAO,GAAG,YAAY,CAAC;AAEnC,qBAAa,YAAa,SAAQ,eAAe;IAC/C,QAAQ,CAAC,IAAI,4BAA4B;IAEzC,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,EAAE,CAAM;IAE3B,yDAAyD;IACzD,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,EAAE,CAAM;IAEzB,aAAa,EAAE,MAAM,CAAC;IACtB,yDAAyD;IACzD,cAAc,EAAE,MAAM,EAAE,CAAM;IAE9B,UAAU,EAAE,OAAO,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAElB,SAAS,EAAE,MAAM,CAAC;IAClB,eAAe,EAAE,MAAM,CAAC;IACxB,gBAAgB,EAAE,MAAM,CAAC;IAEzB,KAAK,EAAE,KAAK,GAAG,YAAY,CAAC;IAC5B,MAAM,EAAE,CAAC,KAAK,GAAG,YAAY,CAAC,EAAE,CAAM;gBAGpC,GAAG,CAAC,EAAE;QACJ,GAAG,CAAC,EAAE,MAAM,CAAC;QAEb,OAAO,CAAC,EAAE,OAAO,CAAC;QAClB,MAAM,CAAC,EAAE,MAAM,CAAC;QAEhB,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,cAAc,CAAC,EAAE,OAAO,CAAC;QAEzB,KAAK,CAAC,EAAE,KAAK,GAAG,YAAY,CAAC;QAE7B,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,aAAa,CAAC,EAAE,MAAM,CAAC;QAEvB,SAAS,CAAC,EAAE,OAAO,CAAC;QACpB,GAAG,CAAC,EAAE,OAAO,CAAC;QAEd,SAAS,CAAC,EAAE,IAAI,CAAC;QACjB,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,cAAc,CAAC,EAAE,IAAI,CAAC;QACtB,gBAAgB,CAAC,EAAE,MAAM,CAAC;QAC1B,GAAG,CAAC,EAAE,MAAM,CAAC;KACd;IA6FH,kBAAkB,IAAI,YAAY;IAYlC,aAAa,IAAI,YAAY;CAe9B;AAyID;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuOG;AACH,MAAM,WAAW,yBAAyB;CAAG"}
|
|
@@ -7,10 +7,11 @@ const metadata_data_model_1 = require("../data-models/metadata.data-model");
|
|
|
7
7
|
class Dynamo_Error extends metadata_data_model_1.Dynamo_Metadata {
|
|
8
8
|
constructor(set) {
|
|
9
9
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13;
|
|
10
|
-
super(set, { issuer: (_c = (_a = set === null || set === void 0 ? void 0 : set.issuerService) !== null && _a !== void 0 ? _a : (_b = set === null || set === void 0 ? void 0 : set.error) === null || _b === void 0 ? void 0 : _b.___issuerService) !== null && _c !== void 0 ? _c : error_defaults_const_1.
|
|
10
|
+
super(set, { issuer: (_c = (_a = set === null || set === void 0 ? void 0 : set.issuerService) !== null && _a !== void 0 ? _a : (_b = set === null || set === void 0 ? void 0 : set.error) === null || _b === void 0 ? void 0 : _b.___issuerService) !== null && _c !== void 0 ? _c : error_defaults_const_1.dynamo_error_default.issuerService });
|
|
11
11
|
this.flag = 'DYNAMO-ERROR-OBJECT-v2';
|
|
12
12
|
this._errorCodes = [];
|
|
13
13
|
this._messages = [];
|
|
14
|
+
/** contains all sub error messages, in reversed order */
|
|
14
15
|
this.__userMessages = [];
|
|
15
16
|
this.errors = [];
|
|
16
17
|
try {
|
|
@@ -20,12 +21,12 @@ class Dynamo_Error extends metadata_data_model_1.Dynamo_Metadata {
|
|
|
20
21
|
/** set simple properties */
|
|
21
22
|
this.___handled = Boolean((_d = set === null || set === void 0 ? void 0 : set.handled) !== null && _d !== void 0 ? _d : (_e = set === null || set === void 0 ? void 0 : set.error) === null || _e === void 0 ? void 0 : _e.___handled);
|
|
22
23
|
this.___status = (_f = set === null || set === void 0 ? void 0 : set.status) !== null && _f !== void 0 ? _f : (_g = set === null || set === void 0 ? void 0 : set.error) === null || _g === void 0 ? void 0 : _g.___status;
|
|
23
|
-
this.___issuer = (_k = (_h = set === null || set === void 0 ? void 0 : set.issuer) !== null && _h !== void 0 ? _h : (_j = set === null || set === void 0 ? void 0 : set.error) === null || _j === void 0 ? void 0 : _j.___issuer) !== null && _k !== void 0 ? _k : error_defaults_const_1.
|
|
24
|
-
this.___issuerSystem = (_o = (_l = set === null || set === void 0 ? void 0 : set.issuerSystem) !== null && _l !== void 0 ? _l : (_m = set === null || set === void 0 ? void 0 : set.error) === null || _m === void 0 ? void 0 : _m.___issuerSystem) !== null && _o !== void 0 ? _o : error_defaults_const_1.
|
|
25
|
-
this.___issuerService = (_r = (_p = set === null || set === void 0 ? void 0 : set.issuerService) !== null && _p !== void 0 ? _p : (_q = set === null || set === void 0 ? void 0 : set.error) === null || _q === void 0 ? void 0 : _q.___issuerService) !== null && _r !== void 0 ? _r : error_defaults_const_1.
|
|
24
|
+
this.___issuer = (_k = (_h = set === null || set === void 0 ? void 0 : set.issuer) !== null && _h !== void 0 ? _h : (_j = set === null || set === void 0 ? void 0 : set.error) === null || _j === void 0 ? void 0 : _j.___issuer) !== null && _k !== void 0 ? _k : error_defaults_const_1.dynamo_error_default.issuer;
|
|
25
|
+
this.___issuerSystem = (_o = (_l = set === null || set === void 0 ? void 0 : set.issuerSystem) !== null && _l !== void 0 ? _l : (_m = set === null || set === void 0 ? void 0 : set.error) === null || _m === void 0 ? void 0 : _m.___issuerSystem) !== null && _o !== void 0 ? _o : error_defaults_const_1.dynamo_error_default.issuerSystem;
|
|
26
|
+
this.___issuerService = (_r = (_p = set === null || set === void 0 ? void 0 : set.issuerService) !== null && _p !== void 0 ? _p : (_q = set === null || set === void 0 ? void 0 : set.error) === null || _q === void 0 ? void 0 : _q.___issuerService) !== null && _r !== void 0 ? _r : error_defaults_const_1.dynamo_error_default.issuerService;
|
|
26
27
|
/** set default error code */
|
|
27
28
|
if (!set.errorCode) {
|
|
28
|
-
set.errorCode = error_defaults_const_1.
|
|
29
|
+
set.errorCode = error_defaults_const_1.dynamo_error_default.errorCode;
|
|
29
30
|
}
|
|
30
31
|
/** set errorCodes */
|
|
31
32
|
const previousErrorCodes = [];
|
|
@@ -33,9 +34,9 @@ class Dynamo_Error extends metadata_data_model_1.Dynamo_Metadata {
|
|
|
33
34
|
previousErrorCodes.push(...(_t = set === null || set === void 0 ? void 0 : set.error) === null || _t === void 0 ? void 0 : _t._errorCodes);
|
|
34
35
|
}
|
|
35
36
|
if (!set.errorCode) {
|
|
36
|
-
set.errorCode = error_defaults_const_1.
|
|
37
|
+
set.errorCode = error_defaults_const_1.dynamo_error_default.errorCode;
|
|
37
38
|
}
|
|
38
|
-
this._errorCodes = [set === null || set === void 0 ? void 0 : set.errorCode
|
|
39
|
+
this._errorCodes = [...previousErrorCodes, set === null || set === void 0 ? void 0 : set.errorCode].filter(Boolean);
|
|
39
40
|
this._errorCode = (_u = this._errorCodes) === null || _u === void 0 ? void 0 : _u[0];
|
|
40
41
|
/** set message */
|
|
41
42
|
if (!set.message) {
|
|
@@ -46,7 +47,7 @@ class Dynamo_Error extends metadata_data_model_1.Dynamo_Metadata {
|
|
|
46
47
|
else {
|
|
47
48
|
/** error not defined */
|
|
48
49
|
const posFull = (_0 = (_z = new Error().stack.split('\n')) === null || _z === void 0 ? void 0 : _z[2]) === null || _0 === void 0 ? void 0 : _0.split('\\');
|
|
49
|
-
set.message = error_defaults_const_1.
|
|
50
|
+
set.message = error_defaults_const_1.dynamo_error_default.message + '; ' + posFull[posFull.length - 1];
|
|
50
51
|
}
|
|
51
52
|
}
|
|
52
53
|
/** set messages */
|
|
@@ -57,7 +58,7 @@ class Dynamo_Error extends metadata_data_model_1.Dynamo_Metadata {
|
|
|
57
58
|
else if ((_3 = set === null || set === void 0 ? void 0 : set.error) === null || _3 === void 0 ? void 0 : _3.message) {
|
|
58
59
|
previousErrorCodes.push((_4 = set === null || set === void 0 ? void 0 : set.error) === null || _4 === void 0 ? void 0 : _4.message);
|
|
59
60
|
}
|
|
60
|
-
this._messages = [set === null || set === void 0 ? void 0 : set.message,
|
|
61
|
+
this._messages = [...previousMessages, set === null || set === void 0 ? void 0 : set.message,].filter(Boolean);
|
|
61
62
|
this._message = (_5 = this._messages) === null || _5 === void 0 ? void 0 : _5[0];
|
|
62
63
|
/** set userMessages */
|
|
63
64
|
const previousUserMessages = [];
|
|
@@ -65,19 +66,19 @@ class Dynamo_Error extends metadata_data_model_1.Dynamo_Metadata {
|
|
|
65
66
|
previousUserMessages.push(...(_7 = set === null || set === void 0 ? void 0 : set.error) === null || _7 === void 0 ? void 0 : _7.__userMessages);
|
|
66
67
|
}
|
|
67
68
|
if (!set.userMessage) {
|
|
68
|
-
set.userMessage = error_defaults_const_1.
|
|
69
|
+
set.userMessage = error_defaults_const_1.dynamo_error_default.userMessage;
|
|
69
70
|
}
|
|
70
71
|
if (set.addECToUserMsg && set.errorCode) {
|
|
71
72
|
set.userMessage += `\nErrorCode: ${set.errorCode}`;
|
|
72
73
|
}
|
|
73
|
-
this.__userMessages = [set === null || set === void 0 ? void 0 : set.userMessage
|
|
74
|
-
this.__userMessage = (_8 = this.__userMessages.filter((msg) => msg && msg !== error_defaults_const_1.
|
|
74
|
+
this.__userMessages = [...previousUserMessages, set === null || set === void 0 ? void 0 : set.userMessage].filter(Boolean);
|
|
75
|
+
this.__userMessage = (_8 = this.__userMessages.filter((msg) => msg && msg !== error_defaults_const_1.dynamo_error_default.userMessage)) === null || _8 === void 0 ? void 0 : _8[0];
|
|
75
76
|
/** set errors */
|
|
76
77
|
const previousErrors = [];
|
|
77
78
|
if ((_9 = set === null || set === void 0 ? void 0 : set.error) === null || _9 === void 0 ? void 0 : _9.errors) {
|
|
78
79
|
previousErrors.push(...(_10 = set === null || set === void 0 ? void 0 : set.error) === null || _10 === void 0 ? void 0 : _10.errors);
|
|
79
80
|
}
|
|
80
|
-
this.errors = [set === null || set === void 0 ? void 0 : set.error
|
|
81
|
+
this.errors = [...previousErrors, set === null || set === void 0 ? void 0 : set.error].filter(Boolean);
|
|
81
82
|
this.error = (_11 = this.errors) === null || _11 === void 0 ? void 0 : _11[0];
|
|
82
83
|
if (set === null || set === void 0 ? void 0 : set.modestLog) {
|
|
83
84
|
console.error((_13 = (_12 = this._message) !== null && _12 !== void 0 ? _12 : this.__userMessage) !== null && _13 !== void 0 ? _13 : this.error);
|
|
@@ -91,6 +92,28 @@ class Dynamo_Error extends metadata_data_model_1.Dynamo_Metadata {
|
|
|
91
92
|
'\nerror:\n', error, '\n\ntrace:', new Error(), '\n\nset:', set, '\n\n');
|
|
92
93
|
}
|
|
93
94
|
}
|
|
95
|
+
getErrorSimplified() {
|
|
96
|
+
var _a;
|
|
97
|
+
const error = this;
|
|
98
|
+
delete error.errors;
|
|
99
|
+
if ((_a = error.error) === null || _a === void 0 ? void 0 : _a.errors) {
|
|
100
|
+
delete error.error.errors;
|
|
101
|
+
}
|
|
102
|
+
return error;
|
|
103
|
+
}
|
|
104
|
+
getErrorsFlat() {
|
|
105
|
+
const error = this;
|
|
106
|
+
error.errors.forEach((err) => {
|
|
107
|
+
var _a;
|
|
108
|
+
if (err.errors) {
|
|
109
|
+
delete err.errors;
|
|
110
|
+
}
|
|
111
|
+
if ((_a = err.error) === null || _a === void 0 ? void 0 : _a.errors) {
|
|
112
|
+
delete err.error.errors;
|
|
113
|
+
}
|
|
114
|
+
});
|
|
115
|
+
return error;
|
|
116
|
+
}
|
|
94
117
|
}
|
|
95
118
|
exports.Dynamo_Error = Dynamo_Error;
|
|
96
119
|
//# sourceMappingURL=error.control-model.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"error.control-model.js","sourceRoot":"","sources":["../../../src/_models/control-models/error.control-model.ts"],"names":[],"mappings":";;;AAAA,gFAA6E;AAC7E,oDAAmD;AACnD,4EAAqE;AAIrE,MAAa,YAAa,SAAQ,qCAAe;
|
|
1
|
+
{"version":3,"file":"error.control-model.js","sourceRoot":"","sources":["../../../src/_models/control-models/error.control-model.ts"],"names":[],"mappings":";;;AAAA,gFAA6E;AAC7E,oDAAmD;AACnD,4EAAqE;AAIrE,MAAa,YAAa,SAAQ,qCAAe;IAwB/C,YACE,GAyBC;;QAED,KAAK,CAAC,GAAG,EAAE,EAAE,MAAM,cAAE,GAAG,aAAH,GAAG,uBAAH,GAAG,CAAE,aAAa,yCAAK,GAAG,aAAH,GAAG,uBAAH,GAAG,CAAE,KAAsB,0CAAE,gBAAgB,mCAAI,2CAAoB,CAAC,aAAa,EAAE,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AEpB,UAAK,KAAK,CAAC,KAAsB,0CAAE,MAAM,EAAE;YACzC,OAAQ,KAAK,CAAC,KAAsB,CAAC,MAAM,CAAC;SAC7C;QAED,OAAO,KAAK,CAAC;IACf,CAAC;IAED,aAAa;QACX,MAAM,KAAK,GAAG,IAAI,CAAC;QAEnB,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,GAAiB,EAAE,EAAE;;YACzC,IAAI,GAAG,CAAC,MAAM,EAAE;gBACd,OAAO,GAAG,CAAC,MAAM,CAAC;aACnB;YAED,UAAK,GAAG,CAAC,KAAsB,0CAAE,MAAM,EAAE;gBACvC,OAAQ,GAAG,CAAC,KAAsB,CAAC,MAAM,CAAC;aAC3C;QACH,CAAC,CAAC,CAAC;QAEH,OAAO,KAAK,CAAC;IACf,CAAC;CACF;AA1KD,oCA0KC"}
|
|
@@ -13,7 +13,7 @@ describe('Dynamo_Error;', () => {
|
|
|
13
13
|
const message_base = '-TEST ERROR: something failed!-';
|
|
14
14
|
const message_1 = 'TEST ERROR MSG (1)';
|
|
15
15
|
const message_2 = 'TEST ERROR MSG (2)';
|
|
16
|
-
const message_selfDefined = error_defaults_const_1.
|
|
16
|
+
const message_selfDefined = error_defaults_const_1.dynamo_error_default.message + '; error.control-model.spec.js:55:29';
|
|
17
17
|
const errorCode_0 = 'ASD-ASD-001';
|
|
18
18
|
const errorCode_1 = 'ASD-ASD-002';
|
|
19
19
|
const errorCode_2 = 'ASD-ASD-003';
|
|
@@ -42,13 +42,13 @@ describe('Dynamo_Error;', () => {
|
|
|
42
42
|
message: message_1,
|
|
43
43
|
errorCode: errorCode_1,
|
|
44
44
|
issuerService: issuerService_1,
|
|
45
|
+
handled: true,
|
|
45
46
|
error: error_0,
|
|
46
47
|
});
|
|
47
48
|
error_stack_2 = new error_control_model_1.Dynamo_Error({
|
|
48
49
|
message: message_2,
|
|
49
50
|
userMessage: userMessage_2,
|
|
50
51
|
addECToUserMsg: true,
|
|
51
|
-
handled: true,
|
|
52
52
|
errorCode: errorCode_2,
|
|
53
53
|
error: error_stack_1,
|
|
54
54
|
});
|
|
@@ -91,13 +91,13 @@ describe('Dynamo_Error;', () => {
|
|
|
91
91
|
expect(error_0._errorCode).toBe(errorCode_0);
|
|
92
92
|
});
|
|
93
93
|
it('on error_stack_1', () => {
|
|
94
|
-
expect(error_stack_1._errorCode).toBe(
|
|
94
|
+
expect(error_stack_1._errorCode).toBe(errorCode_0);
|
|
95
95
|
});
|
|
96
96
|
it('on error_stack_2', () => {
|
|
97
|
-
expect(error_stack_2._errorCode).toBe(
|
|
97
|
+
expect(error_stack_2._errorCode).toBe(errorCode_0);
|
|
98
98
|
});
|
|
99
99
|
it('on self defined error', () => {
|
|
100
|
-
expect(error_selfDefined._errorCode).toBe(error_defaults_const_1.
|
|
100
|
+
expect(error_selfDefined._errorCode).toBe(error_defaults_const_1.dynamo_error_default.errorCode);
|
|
101
101
|
});
|
|
102
102
|
});
|
|
103
103
|
describe('should have the proper _message;', () => {
|
|
@@ -105,10 +105,10 @@ describe('Dynamo_Error;', () => {
|
|
|
105
105
|
expect(error_0._message).toBe(message_base);
|
|
106
106
|
});
|
|
107
107
|
it('on error_stack_1', () => {
|
|
108
|
-
expect(error_stack_1._message).toBe(
|
|
108
|
+
expect(error_stack_1._message).toBe(message_base);
|
|
109
109
|
});
|
|
110
110
|
it('on error_stack_2', () => {
|
|
111
|
-
expect(error_stack_2._message).toBe(
|
|
111
|
+
expect(error_stack_2._message).toBe(message_base);
|
|
112
112
|
});
|
|
113
113
|
it('on self defined error', () => {
|
|
114
114
|
expect(error_selfDefined._message).toBe(message_selfDefined);
|
|
@@ -122,7 +122,7 @@ describe('Dynamo_Error;', () => {
|
|
|
122
122
|
expect(error_stack_1.__userMessage).toBe(userMessageResult_0);
|
|
123
123
|
});
|
|
124
124
|
it('on error_stack_2', () => {
|
|
125
|
-
expect(error_stack_2.__userMessage).toBe(
|
|
125
|
+
expect(error_stack_2.__userMessage).toBe(userMessageResult_0);
|
|
126
126
|
});
|
|
127
127
|
it('on self defined error', () => {
|
|
128
128
|
expect(error_selfDefined.__userMessage).toBeUndefined();
|
|
@@ -133,10 +133,10 @@ describe('Dynamo_Error;', () => {
|
|
|
133
133
|
expect(error_0.error).toBe(error_base);
|
|
134
134
|
});
|
|
135
135
|
it('on error_stack_1', () => {
|
|
136
|
-
expect(error_stack_1.error).toBe(
|
|
136
|
+
expect(error_stack_1.error).toBe(error_base);
|
|
137
137
|
});
|
|
138
138
|
it('on error_stack_2', () => {
|
|
139
|
-
expect(error_stack_2.error).toBe(
|
|
139
|
+
expect(error_stack_2.error).toBe(error_base);
|
|
140
140
|
});
|
|
141
141
|
it('on self defined error', () => {
|
|
142
142
|
expect(error_selfDefined.error).toBeUndefined();
|
|
@@ -147,7 +147,7 @@ describe('Dynamo_Error;', () => {
|
|
|
147
147
|
expect(error_0.___handled).toBe(false);
|
|
148
148
|
});
|
|
149
149
|
it('on error_stack_1', () => {
|
|
150
|
-
expect(error_stack_1.___handled).toBe(
|
|
150
|
+
expect(error_stack_1.___handled).toBe(true);
|
|
151
151
|
});
|
|
152
152
|
it('on error_stack_2', () => {
|
|
153
153
|
expect(error_stack_2.___handled).toBe(true);
|
|
@@ -175,13 +175,13 @@ describe('Dynamo_Error;', () => {
|
|
|
175
175
|
expect(error_0._errorCodes).toEqual([errorCode_0]);
|
|
176
176
|
});
|
|
177
177
|
it('on error_stack_1', () => {
|
|
178
|
-
expect(error_stack_1._errorCodes).toEqual([
|
|
178
|
+
expect(error_stack_1._errorCodes).toEqual([errorCode_0, errorCode_1]);
|
|
179
179
|
});
|
|
180
180
|
it('on error_stack_2', () => {
|
|
181
|
-
expect(error_stack_2._errorCodes).toEqual([
|
|
181
|
+
expect(error_stack_2._errorCodes).toEqual([errorCode_0, errorCode_1, errorCode_2]);
|
|
182
182
|
});
|
|
183
183
|
it('on self defined error', () => {
|
|
184
|
-
expect(error_selfDefined._errorCodes).toEqual([error_defaults_const_1.
|
|
184
|
+
expect(error_selfDefined._errorCodes).toEqual([error_defaults_const_1.dynamo_error_default.errorCode]);
|
|
185
185
|
});
|
|
186
186
|
});
|
|
187
187
|
describe('should have the proper _messages;', () => {
|
|
@@ -189,10 +189,10 @@ describe('Dynamo_Error;', () => {
|
|
|
189
189
|
expect(error_0._messages).toEqual([message_base]);
|
|
190
190
|
});
|
|
191
191
|
it('on error_stack_1', () => {
|
|
192
|
-
expect(error_stack_1._messages).toEqual([
|
|
192
|
+
expect(error_stack_1._messages).toEqual([message_base, message_1]);
|
|
193
193
|
});
|
|
194
194
|
it('on error_stack_2', () => {
|
|
195
|
-
expect(error_stack_2._messages).toEqual([
|
|
195
|
+
expect(error_stack_2._messages).toEqual([message_base, message_1, message_2]);
|
|
196
196
|
});
|
|
197
197
|
it('on self defined error', () => {
|
|
198
198
|
expect(error_selfDefined._messages).toEqual([message_selfDefined]);
|
|
@@ -203,13 +203,13 @@ describe('Dynamo_Error;', () => {
|
|
|
203
203
|
expect(error_0.__userMessages).toEqual([userMessageResult_0]);
|
|
204
204
|
});
|
|
205
205
|
it('on error_stack_1', () => {
|
|
206
|
-
expect(error_stack_1.__userMessages).toEqual([error_defaults_const_1.
|
|
206
|
+
expect(error_stack_1.__userMessages).toEqual([userMessageResult_0, error_defaults_const_1.dynamo_error_default.userMessage]);
|
|
207
207
|
});
|
|
208
208
|
it('on error_stack_2', () => {
|
|
209
|
-
expect(error_stack_2.__userMessages).toEqual([
|
|
209
|
+
expect(error_stack_2.__userMessages).toEqual([userMessageResult_0, error_defaults_const_1.dynamo_error_default.userMessage, userMessageResult_2]);
|
|
210
210
|
});
|
|
211
211
|
it('on self defined error', () => {
|
|
212
|
-
expect(error_selfDefined.__userMessages).toEqual([error_defaults_const_1.
|
|
212
|
+
expect(error_selfDefined.__userMessages).toEqual([error_defaults_const_1.dynamo_error_default.userMessage]);
|
|
213
213
|
});
|
|
214
214
|
});
|
|
215
215
|
describe('should have the proper errors;', () => {
|
|
@@ -217,10 +217,10 @@ describe('Dynamo_Error;', () => {
|
|
|
217
217
|
expect(error_0.errors).toEqual([error_base]);
|
|
218
218
|
});
|
|
219
219
|
it('on error_stack_1', () => {
|
|
220
|
-
expect(error_stack_1.errors).toEqual([
|
|
220
|
+
expect(error_stack_1.errors).toEqual([error_base, error_0]);
|
|
221
221
|
});
|
|
222
222
|
it('on error_stack_2', () => {
|
|
223
|
-
expect(error_stack_2.errors).toEqual([
|
|
223
|
+
expect(error_stack_2.errors).toEqual([error_base, error_0, error_stack_1]);
|
|
224
224
|
});
|
|
225
225
|
it('on self defined error', () => {
|
|
226
226
|
expect(error_selfDefined.errors).toEqual([]);
|
|
@@ -237,7 +237,7 @@ describe('Dynamo_Error;', () => {
|
|
|
237
237
|
expect(error_stack_2.___issuer).toBe(issuer);
|
|
238
238
|
});
|
|
239
239
|
it('on self defined error', () => {
|
|
240
|
-
expect(error_selfDefined.___issuer).toBe(error_defaults_const_1.
|
|
240
|
+
expect(error_selfDefined.___issuer).toBe(error_defaults_const_1.dynamo_error_default.issuer);
|
|
241
241
|
});
|
|
242
242
|
});
|
|
243
243
|
describe('should have the proper issuerSystem;', () => {
|
|
@@ -251,7 +251,7 @@ describe('Dynamo_Error;', () => {
|
|
|
251
251
|
expect(error_stack_2.___issuerSystem).toBe(issuerSystem);
|
|
252
252
|
});
|
|
253
253
|
it('on self defined error', () => {
|
|
254
|
-
expect(error_selfDefined.___issuerSystem).toBe(error_defaults_const_1.
|
|
254
|
+
expect(error_selfDefined.___issuerSystem).toBe(error_defaults_const_1.dynamo_error_default.issuerSystem);
|
|
255
255
|
});
|
|
256
256
|
});
|
|
257
257
|
describe('should have the proper issuerService;', () => {
|
|
@@ -265,7 +265,7 @@ describe('Dynamo_Error;', () => {
|
|
|
265
265
|
expect(error_stack_2.___issuerService).toBe(issuerService_1);
|
|
266
266
|
});
|
|
267
267
|
it('on self defined error', () => {
|
|
268
|
-
expect(error_selfDefined.___issuerService).toBe(error_defaults_const_1.
|
|
268
|
+
expect(error_selfDefined.___issuerService).toBe(error_defaults_const_1.dynamo_error_default.issuerService);
|
|
269
269
|
});
|
|
270
270
|
});
|
|
271
271
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"error.control-model.spec.js","sourceRoot":"","sources":["../../../src/_models/control-models/error.control-model.spec.ts"],"names":[],"mappings":";;;AAEA,gFAA6E;AAC7E,oDAAmD;AACnD,+DAAqD;AAErD,QAAQ,CAAC,eAAe,EAAE,GAAG,EAAE;IAC7B,IAAI,UAAiB,CAAC;IACtB,IAAI,OAAqB,CAAC;IAC1B,IAAI,aAA2B,CAAC;IAChC,IAAI,aAA2B,CAAC;IAChC,IAAI,iBAA+B,CAAC;IAEpC,MAAM,YAAY,GAAW,iCAAiC,CAAC;IAC/D,MAAM,SAAS,GAAW,oBAAoB,CAAC;IAC/C,MAAM,SAAS,GAAW,oBAAoB,CAAC;IAC/C,MAAM,mBAAmB,GAAW,2CAAoB,CAAC,OAAO,GAAG,qCAAqC,CAAC;IAEzG,MAAM,WAAW,GAAW,aAAa,CAAC;IAC1C,MAAM,WAAW,GAAW,aAAa,CAAC;IAC1C,MAAM,WAAW,GAAW,aAAa,CAAC;IAE1C,MAAM,aAAa,GAAW,iCAAiC,CAAC;IAChE,MAAM,aAAa,GAAW,iCAAiC,CAAC;IAEhE,MAAM,mBAAmB,GAAW,aAAa,GAAG,gBAAgB,WAAW,EAAE,CAAC;IAClF,MAAM,mBAAmB,GAAW,aAAa,GAAG,gBAAgB,WAAW,EAAE,CAAC;IAElF,MAAM,MAAM,GAAW,wBAAwB,CAAA;IAC/C,MAAM,YAAY,GAAW,iBAAiB,CAAC;IAC/C,MAAM,eAAe,GAAW,WAAW,CAAC;IAC5C,MAAM,eAAe,GAAW,WAAW,CAAC;IAE5C,MAAM,GAAG,GAAY,KAAK,CAAC;IAC3B,gCAAgC;IAEhC,UAAU,CAAC,GAAS,EAAE;QACpB,UAAU,GAAG,IAAI,KAAK,CAAC,YAAY,CAAC,CAAC;QAErC,OAAO,GA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":3,"file":"error.control-model.spec.js","sourceRoot":"","sources":["../../../src/_models/control-models/error.control-model.spec.ts"],"names":[],"mappings":";;;AAEA,gFAA6E;AAC7E,oDAAmD;AACnD,+DAAqD;AAErD,QAAQ,CAAC,eAAe,EAAE,GAAG,EAAE;IAC7B,IAAI,UAAiB,CAAC;IACtB,IAAI,OAAqB,CAAC;IAC1B,IAAI,aAA2B,CAAC;IAChC,IAAI,aAA2B,CAAC;IAChC,IAAI,iBAA+B,CAAC;IAEpC,MAAM,YAAY,GAAW,iCAAiC,CAAC;IAC/D,MAAM,SAAS,GAAW,oBAAoB,CAAC;IAC/C,MAAM,SAAS,GAAW,oBAAoB,CAAC;IAC/C,MAAM,mBAAmB,GAAW,2CAAoB,CAAC,OAAO,GAAG,qCAAqC,CAAC;IAEzG,MAAM,WAAW,GAAW,aAAa,CAAC;IAC1C,MAAM,WAAW,GAAW,aAAa,CAAC;IAC1C,MAAM,WAAW,GAAW,aAAa,CAAC;IAE1C,MAAM,aAAa,GAAW,iCAAiC,CAAC;IAChE,MAAM,aAAa,GAAW,iCAAiC,CAAC;IAEhE,MAAM,mBAAmB,GAAW,aAAa,GAAG,gBAAgB,WAAW,EAAE,CAAC;IAClF,MAAM,mBAAmB,GAAW,aAAa,GAAG,gBAAgB,WAAW,EAAE,CAAC;IAElF,MAAM,MAAM,GAAW,wBAAwB,CAAA;IAC/C,MAAM,YAAY,GAAW,iBAAiB,CAAC;IAC/C,MAAM,eAAe,GAAW,WAAW,CAAC;IAC5C,MAAM,eAAe,GAAW,WAAW,CAAC;IAE5C,MAAM,GAAG,GAAY,KAAK,CAAC;IAC3B,gCAAgC;IAEhC,UAAU,CAAC,GAAS,EAAE;QACpB,UAAU,GAAG,IAAI,KAAK,CAAC,YAAY,CAAC,CAAC;QAErC,OAAO,GAAG,IAAI,kCAAY,CAAC;YACzB,WAAW,EAAE,aAAa;YAC1B,cAAc,EAAE,IAAI;YACpB,SAAS,EAAE,WAAW;YACtB,YAAY,EAAE,YA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ts": {
|
|
360
|
-
"version": "
|
|
361
|
-
"signature": "
|
|
360
|
+
"version": "7d14c2716d9503f238109d8507783a4f7def89641c5d97c9ac218a6e3416ec5e",
|
|
361
|
+
"signature": "79bdee6fdbfe7d3b0c914a0b9892604ac989d88729ee1e6200500ca0e5000fd6",
|
|
362
362
|
"affectsGlobalScope": false
|
|
363
363
|
},
|
|
364
364
|
"../src/_utils/log.util.ts": {
|
|
@@ -367,8 +367,8 @@
|
|
|
367
367
|
"affectsGlobalScope": false
|
|
368
368
|
},
|
|
369
369
|
"../src/_models/control-models/error.control-model.ts": {
|
|
370
|
-
"version": "
|
|
371
|
-
"signature": "
|
|
370
|
+
"version": "b8ef7f977ab247879d0e3ce4013094cb88e968446c0609673d18277b853c1b1e",
|
|
371
|
+
"signature": "f793e34d7b18443997cc64e3b850c1ea2b9813a60f14dc770d4a4eaabc8d2f1c",
|
|
372
372
|
"affectsGlobalScope": false
|
|
373
373
|
},
|
|
374
374
|
"../src/_utils/trigonometry.util.ts": {
|
|
@@ -469,7 +469,7 @@
|
|
|
469
469
|
"affectsGlobalScope": false
|
|
470
470
|
},
|
|
471
471
|
"../src/_models/control-models/error.control-model.spec.ts": {
|
|
472
|
-
"version": "
|
|
472
|
+
"version": "cdd726e5a1fb451b7ca9c3a86ef020225f24589446766196570fd520c1785851",
|
|
473
473
|
"signature": "9993da6c9588ba777b12d613520afad482510e64ade007457d175e9e53a8d003",
|
|
474
474
|
"affectsGlobalScope": false
|
|
475
475
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Dynamo_Error_Defaults } from '../_models';
|
|
2
2
|
|
|
3
|
-
export const
|
|
3
|
+
export const dynamo_error_default: Dynamo_Error_Defaults = {
|
|
4
4
|
errorCode: 'NO-ERROR-CODE',
|
|
5
5
|
message: 'NO-ERROR-MESSAGE',
|
|
6
6
|
userMessage: 'MISSING-ERROR-USER-MESSAGE',
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import { dynamo_error_default } from '../../_constants/error-defaults.const';
|
|
4
4
|
import { Dynamo_Log } from '../../_utils/log.util';
|
|
5
5
|
import { Dynamo_Error } from './error.control-model';
|
|
6
6
|
|
|
@@ -14,7 +14,7 @@ describe('Dynamo_Error;', () => {
|
|
|
14
14
|
const message_base: string = '-TEST ERROR: something failed!-';
|
|
15
15
|
const message_1: string = 'TEST ERROR MSG (1)';
|
|
16
16
|
const message_2: string = 'TEST ERROR MSG (2)';
|
|
17
|
-
const message_selfDefined: string =
|
|
17
|
+
const message_selfDefined: string = dynamo_error_default.message + '; error.control-model.spec.js:55:29';
|
|
18
18
|
|
|
19
19
|
const errorCode_0: string = 'ASD-ASD-001';
|
|
20
20
|
const errorCode_1: string = 'ASD-ASD-002';
|
|
@@ -51,6 +51,7 @@ describe('Dynamo_Error;', () => {
|
|
|
51
51
|
message: message_1,
|
|
52
52
|
errorCode: errorCode_1,
|
|
53
53
|
issuerService: issuerService_1,
|
|
54
|
+
handled: true,
|
|
54
55
|
error: error_0,
|
|
55
56
|
});
|
|
56
57
|
|
|
@@ -58,7 +59,6 @@ describe('Dynamo_Error;', () => {
|
|
|
58
59
|
message: message_2,
|
|
59
60
|
userMessage: userMessage_2,
|
|
60
61
|
addECToUserMsg: true,
|
|
61
|
-
handled: true,
|
|
62
62
|
errorCode: errorCode_2,
|
|
63
63
|
error: error_stack_1,
|
|
64
64
|
});
|
|
@@ -114,15 +114,15 @@ describe('Dynamo_Error;', () => {
|
|
|
114
114
|
});
|
|
115
115
|
|
|
116
116
|
it('on error_stack_1', () => {
|
|
117
|
-
expect(error_stack_1._errorCode).toBe(
|
|
117
|
+
expect(error_stack_1._errorCode).toBe(errorCode_0);
|
|
118
118
|
});
|
|
119
119
|
|
|
120
120
|
it('on error_stack_2', () => {
|
|
121
|
-
expect(error_stack_2._errorCode).toBe(
|
|
121
|
+
expect(error_stack_2._errorCode).toBe(errorCode_0);
|
|
122
122
|
});
|
|
123
123
|
|
|
124
124
|
it('on self defined error', () => {
|
|
125
|
-
expect(error_selfDefined._errorCode).toBe(
|
|
125
|
+
expect(error_selfDefined._errorCode).toBe(dynamo_error_default.errorCode);
|
|
126
126
|
});
|
|
127
127
|
});
|
|
128
128
|
|
|
@@ -132,11 +132,11 @@ describe('Dynamo_Error;', () => {
|
|
|
132
132
|
});
|
|
133
133
|
|
|
134
134
|
it('on error_stack_1', () => {
|
|
135
|
-
expect(error_stack_1._message).toBe(
|
|
135
|
+
expect(error_stack_1._message).toBe(message_base);
|
|
136
136
|
});
|
|
137
137
|
|
|
138
138
|
it('on error_stack_2', () => {
|
|
139
|
-
expect(error_stack_2._message).toBe(
|
|
139
|
+
expect(error_stack_2._message).toBe(message_base);
|
|
140
140
|
});
|
|
141
141
|
|
|
142
142
|
it('on self defined error', () => {
|
|
@@ -154,7 +154,7 @@ describe('Dynamo_Error;', () => {
|
|
|
154
154
|
});
|
|
155
155
|
|
|
156
156
|
it('on error_stack_2', () => {
|
|
157
|
-
expect(error_stack_2.__userMessage).toBe(
|
|
157
|
+
expect(error_stack_2.__userMessage).toBe(userMessageResult_0);
|
|
158
158
|
});
|
|
159
159
|
|
|
160
160
|
it('on self defined error', () => {
|
|
@@ -168,11 +168,11 @@ describe('Dynamo_Error;', () => {
|
|
|
168
168
|
});
|
|
169
169
|
|
|
170
170
|
it('on error_stack_1', () => {
|
|
171
|
-
expect(error_stack_1.error).toBe(
|
|
171
|
+
expect(error_stack_1.error).toBe(error_base);
|
|
172
172
|
});
|
|
173
173
|
|
|
174
174
|
it('on error_stack_2', () => {
|
|
175
|
-
expect(error_stack_2.error).toBe(
|
|
175
|
+
expect(error_stack_2.error).toBe(error_base);
|
|
176
176
|
});
|
|
177
177
|
|
|
178
178
|
it('on self defined error', () => {
|
|
@@ -186,7 +186,7 @@ describe('Dynamo_Error;', () => {
|
|
|
186
186
|
});
|
|
187
187
|
|
|
188
188
|
it('on error_stack_1', () => {
|
|
189
|
-
expect(error_stack_1.___handled).toBe(
|
|
189
|
+
expect(error_stack_1.___handled).toBe(true);
|
|
190
190
|
});
|
|
191
191
|
|
|
192
192
|
it('on error_stack_2', () => {
|
|
@@ -222,15 +222,15 @@ describe('Dynamo_Error;', () => {
|
|
|
222
222
|
});
|
|
223
223
|
|
|
224
224
|
it('on error_stack_1', () => {
|
|
225
|
-
expect(error_stack_1._errorCodes).toEqual([
|
|
225
|
+
expect(error_stack_1._errorCodes).toEqual([ errorCode_0, errorCode_1 ]);
|
|
226
226
|
});
|
|
227
227
|
|
|
228
228
|
it('on error_stack_2', () => {
|
|
229
|
-
expect(error_stack_2._errorCodes).toEqual([
|
|
229
|
+
expect(error_stack_2._errorCodes).toEqual([ errorCode_0, errorCode_1, errorCode_2 ]);
|
|
230
230
|
});
|
|
231
231
|
|
|
232
232
|
it('on self defined error', () => {
|
|
233
|
-
expect(error_selfDefined._errorCodes).toEqual([
|
|
233
|
+
expect(error_selfDefined._errorCodes).toEqual([ dynamo_error_default.errorCode ]);
|
|
234
234
|
});
|
|
235
235
|
});
|
|
236
236
|
|
|
@@ -240,11 +240,11 @@ describe('Dynamo_Error;', () => {
|
|
|
240
240
|
});
|
|
241
241
|
|
|
242
242
|
it('on error_stack_1', () => {
|
|
243
|
-
expect(error_stack_1._messages).toEqual([
|
|
243
|
+
expect(error_stack_1._messages).toEqual([ message_base, message_1 ]);
|
|
244
244
|
});
|
|
245
245
|
|
|
246
246
|
it('on error_stack_2', () => {
|
|
247
|
-
expect(error_stack_2._messages).toEqual([
|
|
247
|
+
expect(error_stack_2._messages).toEqual([ message_base, message_1, message_2 ]);
|
|
248
248
|
});
|
|
249
249
|
|
|
250
250
|
it('on self defined error', () => {
|
|
@@ -258,15 +258,15 @@ describe('Dynamo_Error;', () => {
|
|
|
258
258
|
});
|
|
259
259
|
|
|
260
260
|
it('on error_stack_1', () => {
|
|
261
|
-
expect(error_stack_1.__userMessages).toEqual([
|
|
261
|
+
expect(error_stack_1.__userMessages).toEqual([ userMessageResult_0, dynamo_error_default.userMessage ]);
|
|
262
262
|
});
|
|
263
263
|
|
|
264
264
|
it('on error_stack_2', () => {
|
|
265
|
-
expect(error_stack_2.__userMessages).toEqual([
|
|
265
|
+
expect(error_stack_2.__userMessages).toEqual([ userMessageResult_0, dynamo_error_default.userMessage, userMessageResult_2 ]);
|
|
266
266
|
});
|
|
267
267
|
|
|
268
268
|
it('on self defined error', () => {
|
|
269
|
-
expect(error_selfDefined.__userMessages).toEqual([
|
|
269
|
+
expect(error_selfDefined.__userMessages).toEqual([ dynamo_error_default.userMessage ]);
|
|
270
270
|
});
|
|
271
271
|
});
|
|
272
272
|
|
|
@@ -276,11 +276,11 @@ describe('Dynamo_Error;', () => {
|
|
|
276
276
|
});
|
|
277
277
|
|
|
278
278
|
it('on error_stack_1', () => {
|
|
279
|
-
expect(error_stack_1.errors).toEqual([
|
|
279
|
+
expect(error_stack_1.errors).toEqual([ error_base, error_0 ]);
|
|
280
280
|
});
|
|
281
281
|
|
|
282
282
|
it('on error_stack_2', () => {
|
|
283
|
-
expect(error_stack_2.errors).toEqual([
|
|
283
|
+
expect(error_stack_2.errors).toEqual([ error_base, error_0, error_stack_1 ]);
|
|
284
284
|
});
|
|
285
285
|
|
|
286
286
|
it('on self defined error', () => {
|
|
@@ -302,7 +302,7 @@ describe('Dynamo_Error;', () => {
|
|
|
302
302
|
});
|
|
303
303
|
|
|
304
304
|
it('on self defined error', () => {
|
|
305
|
-
expect(error_selfDefined.___issuer).toBe(
|
|
305
|
+
expect(error_selfDefined.___issuer).toBe(dynamo_error_default.issuer);
|
|
306
306
|
});
|
|
307
307
|
});
|
|
308
308
|
|
|
@@ -320,7 +320,7 @@ describe('Dynamo_Error;', () => {
|
|
|
320
320
|
});
|
|
321
321
|
|
|
322
322
|
it('on self defined error', () => {
|
|
323
|
-
expect(error_selfDefined.___issuerSystem).toBe(
|
|
323
|
+
expect(error_selfDefined.___issuerSystem).toBe(dynamo_error_default.issuerSystem);
|
|
324
324
|
});
|
|
325
325
|
});
|
|
326
326
|
|
|
@@ -338,7 +338,7 @@ describe('Dynamo_Error;', () => {
|
|
|
338
338
|
});
|
|
339
339
|
|
|
340
340
|
it('on self defined error', () => {
|
|
341
|
-
expect(error_selfDefined.___issuerService).toBe(
|
|
341
|
+
expect(error_selfDefined.___issuerService).toBe(dynamo_error_default.issuerService);
|
|
342
342
|
});
|
|
343
343
|
});
|
|
344
344
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { dynamo_error_default } from '../../_constants/error-defaults.const';
|
|
2
2
|
import { Dynamo_Log } from '../../_utils/log.util';
|
|
3
3
|
import { Dynamo_Metadata } from '../data-models/metadata.data-model';
|
|
4
4
|
|
|
@@ -10,10 +10,12 @@ export class Dynamo_Error extends Dynamo_Metadata {
|
|
|
10
10
|
_errorCode: string;
|
|
11
11
|
_errorCodes: string[] = [];
|
|
12
12
|
|
|
13
|
+
/** contains all sub error messages, in reversed order */
|
|
13
14
|
_message: string;
|
|
14
15
|
_messages: string[] = [];
|
|
15
16
|
|
|
16
17
|
__userMessage: string;
|
|
18
|
+
/** contains all sub error messages, in reversed order */
|
|
17
19
|
__userMessages: string[] = [];
|
|
18
20
|
|
|
19
21
|
___handled: boolean;
|
|
@@ -54,7 +56,7 @@ export class Dynamo_Error extends Dynamo_Metadata {
|
|
|
54
56
|
__v?: number,
|
|
55
57
|
}
|
|
56
58
|
) {
|
|
57
|
-
super(set, { issuer: set?.issuerService ?? (set?.error as Dynamo_Error)?.___issuerService ??
|
|
59
|
+
super(set, { issuer: set?.issuerService ?? (set?.error as Dynamo_Error)?.___issuerService ?? dynamo_error_default.issuerService });
|
|
58
60
|
|
|
59
61
|
try {
|
|
60
62
|
if (!set) {
|
|
@@ -65,13 +67,13 @@ export class Dynamo_Error extends Dynamo_Metadata {
|
|
|
65
67
|
this.___handled = Boolean(set?.handled ?? (set?.error as Dynamo_Error)?.___handled);
|
|
66
68
|
this.___status = set?.status ?? (set?.error as Dynamo_Error)?.___status;
|
|
67
69
|
|
|
68
|
-
this.___issuer = set?.issuer ?? (set?.error as Dynamo_Error)?.___issuer ??
|
|
69
|
-
this.___issuerSystem = set?.issuerSystem ?? (set?.error as Dynamo_Error)?.___issuerSystem ??
|
|
70
|
-
this.___issuerService = set?.issuerService ?? (set?.error as Dynamo_Error)?.___issuerService ??
|
|
70
|
+
this.___issuer = set?.issuer ?? (set?.error as Dynamo_Error)?.___issuer ?? dynamo_error_default.issuer;
|
|
71
|
+
this.___issuerSystem = set?.issuerSystem ?? (set?.error as Dynamo_Error)?.___issuerSystem ?? dynamo_error_default.issuerSystem;
|
|
72
|
+
this.___issuerService = set?.issuerService ?? (set?.error as Dynamo_Error)?.___issuerService ?? dynamo_error_default.issuerService;
|
|
71
73
|
|
|
72
74
|
/** set default error code */
|
|
73
75
|
if (!set.errorCode) {
|
|
74
|
-
set.errorCode =
|
|
76
|
+
set.errorCode = dynamo_error_default.errorCode;
|
|
75
77
|
}
|
|
76
78
|
|
|
77
79
|
/** set errorCodes */
|
|
@@ -80,9 +82,9 @@ export class Dynamo_Error extends Dynamo_Metadata {
|
|
|
80
82
|
previousErrorCodes.push(...(set?.error as Dynamo_Error)?._errorCodes);
|
|
81
83
|
}
|
|
82
84
|
if (!set.errorCode) {
|
|
83
|
-
set.errorCode =
|
|
85
|
+
set.errorCode = dynamo_error_default.errorCode;
|
|
84
86
|
}
|
|
85
|
-
this._errorCodes = [ set?.errorCode
|
|
87
|
+
this._errorCodes = [ ...previousErrorCodes, set?.errorCode ].filter(Boolean);
|
|
86
88
|
this._errorCode = this._errorCodes?.[0];
|
|
87
89
|
|
|
88
90
|
/** set message */
|
|
@@ -93,7 +95,7 @@ export class Dynamo_Error extends Dynamo_Metadata {
|
|
|
93
95
|
} else {
|
|
94
96
|
/** error not defined */
|
|
95
97
|
const posFull = new Error().stack.split('\n')?.[2]?.split('\\');
|
|
96
|
-
set.message =
|
|
98
|
+
set.message = dynamo_error_default.message + '; ' + posFull[posFull.length - 1];
|
|
97
99
|
}
|
|
98
100
|
}
|
|
99
101
|
/** set messages */
|
|
@@ -103,7 +105,7 @@ export class Dynamo_Error extends Dynamo_Metadata {
|
|
|
103
105
|
} else if ((set?.error as Error)?.message) {
|
|
104
106
|
previousErrorCodes.push((set?.error as Error)?.message);
|
|
105
107
|
}
|
|
106
|
-
this._messages = [ set?.message,
|
|
108
|
+
this._messages = [ ...previousMessages, set?.message, ].filter(Boolean);
|
|
107
109
|
this._message = this._messages?.[0];
|
|
108
110
|
|
|
109
111
|
/** set userMessages */
|
|
@@ -112,20 +114,20 @@ export class Dynamo_Error extends Dynamo_Metadata {
|
|
|
112
114
|
previousUserMessages.push(...(set?.error as Dynamo_Error)?.__userMessages);
|
|
113
115
|
}
|
|
114
116
|
if (!set.userMessage) {
|
|
115
|
-
set.userMessage =
|
|
117
|
+
set.userMessage = dynamo_error_default.userMessage;
|
|
116
118
|
}
|
|
117
119
|
if (set.addECToUserMsg && set.errorCode) {
|
|
118
120
|
set.userMessage += `\nErrorCode: ${set.errorCode}`
|
|
119
121
|
}
|
|
120
|
-
this.__userMessages = [ set?.userMessage
|
|
121
|
-
this.__userMessage = this.__userMessages.filter((msg: string) => msg && msg !==
|
|
122
|
+
this.__userMessages = [ ...previousUserMessages, set?.userMessage ].filter(Boolean);
|
|
123
|
+
this.__userMessage = this.__userMessages.filter((msg: string) => msg && msg !== dynamo_error_default.userMessage)?.[0];
|
|
122
124
|
|
|
123
125
|
/** set errors */
|
|
124
126
|
const previousErrors: (Error | Dynamo_Error)[] = [];
|
|
125
127
|
if ((set?.error as Dynamo_Error)?.errors) {
|
|
126
128
|
previousErrors.push(...(set?.error as Dynamo_Error)?.errors);
|
|
127
129
|
}
|
|
128
|
-
this.errors = [ set?.error
|
|
130
|
+
this.errors = [ ...previousErrors, set?.error ].filter(Boolean);
|
|
129
131
|
this.error = this.errors?.[0];
|
|
130
132
|
|
|
131
133
|
if (set?.modestLog) {
|
|
@@ -144,6 +146,34 @@ export class Dynamo_Error extends Dynamo_Metadata {
|
|
|
144
146
|
);
|
|
145
147
|
}
|
|
146
148
|
}
|
|
149
|
+
|
|
150
|
+
getErrorSimplified(): Dynamo_Error {
|
|
151
|
+
const error = this;
|
|
152
|
+
|
|
153
|
+
delete error.errors;
|
|
154
|
+
|
|
155
|
+
if ((error.error as Dynamo_Error)?.errors) {
|
|
156
|
+
delete (error.error as Dynamo_Error).errors;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
return error;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
getErrorsFlat(): Dynamo_Error {
|
|
163
|
+
const error = this;
|
|
164
|
+
|
|
165
|
+
error.errors.forEach((err: Dynamo_Error) => {
|
|
166
|
+
if (err.errors) {
|
|
167
|
+
delete err.errors;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
if ((err.error as Dynamo_Error)?.errors) {
|
|
171
|
+
delete (err.error as Dynamo_Error).errors;
|
|
172
|
+
}
|
|
173
|
+
});
|
|
174
|
+
|
|
175
|
+
return error;
|
|
176
|
+
}
|
|
147
177
|
}
|
|
148
178
|
|
|
149
179
|
/*
|