@trudb/tru-common-lib 0.2.15 → 0.2.16
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.
|
@@ -9882,7 +9882,8 @@ class TruServerError {
|
|
|
9882
9882
|
componentName = '';
|
|
9883
9883
|
constructor(error) {
|
|
9884
9884
|
let parsedError = JSON.parse(error.error);
|
|
9885
|
-
if (parsedError.
|
|
9885
|
+
if (parsedError.ExceptionType && parsedError.ExceptionType === 'tru-db-custom-exception') {
|
|
9886
|
+
parsedError = JSON.parse(parsedError.Message);
|
|
9886
9887
|
this.id = parsedError.$id;
|
|
9887
9888
|
this.type = parsedError.exceptionType;
|
|
9888
9889
|
this.code = parsedError.Code;
|