@trudb/tru-common-lib 0.2.15 → 0.2.17
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;
|
|
@@ -10012,7 +10013,7 @@ class TruErrorInterceptor {
|
|
|
10012
10013
|
}
|
|
10013
10014
|
intercept(request, next) {
|
|
10014
10015
|
return next.handle(request).pipe(catchError((error) => {
|
|
10015
|
-
if (error.status !== 401 && !(error.error instanceof Blob))
|
|
10016
|
+
if (error.status !== 401 && error.status !== 999 && !(error.error instanceof Blob))
|
|
10016
10017
|
this.errorManager.handleError(error);
|
|
10017
10018
|
return next.handle(request);
|
|
10018
10019
|
}));
|