@ardimedia/angular-portal-azure 0.2.207 → 0.2.209
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/apn.js +16 -4
- package/package.json +1 -1
package/apn.js
CHANGED
|
@@ -1402,7 +1402,6 @@ var angularportalazure;
|
|
|
1402
1402
|
return exception;
|
|
1403
1403
|
};
|
|
1404
1404
|
Exception.getOneLineMessage = function (exception) {
|
|
1405
|
-
console.log(exception);
|
|
1406
1405
|
var message = 'FEHLER ';
|
|
1407
1406
|
if (exception.Message !== undefined) {
|
|
1408
1407
|
message = message + ': ' + exception.Message + ' ';
|
|
@@ -1455,10 +1454,23 @@ var angularportalazure;
|
|
|
1455
1454
|
};
|
|
1456
1455
|
// TODO:2017-01-09/hp: Implement this function for angular2
|
|
1457
1456
|
Exception.setExceptionType2 = function (response, exception) {
|
|
1458
|
-
if (response.json().ExceptionType
|
|
1459
|
-
|
|
1460
|
-
|
|
1457
|
+
if (response.json().ExceptionType === undefined) {
|
|
1458
|
+
return;
|
|
1459
|
+
}
|
|
1460
|
+
if (response.json().ExceptionType === 'System.Data.Entity.Validation.DbEntityValidationException') {
|
|
1461
|
+
exception.ExceptionType = 'DbEntityValidationException';
|
|
1462
|
+
return;
|
|
1463
|
+
}
|
|
1464
|
+
else if (response.json().ExceptionType === 'System.Data.Entity.Infrastructure.DbUpdateConcurrencyException') {
|
|
1465
|
+
exception.ExceptionType = 'DbUpdateConcurrencyException';
|
|
1466
|
+
return;
|
|
1467
|
+
}
|
|
1468
|
+
else if (response.json().ClassName.indexOf('ValidationsException') > 0) {
|
|
1469
|
+
// ClassName should by ExceptionType
|
|
1470
|
+
exception.ExceptionType = 'ValidationsException';
|
|
1471
|
+
return;
|
|
1461
1472
|
}
|
|
1473
|
+
exception.ExceptionType = response.json().ExceptionType;
|
|
1462
1474
|
};
|
|
1463
1475
|
return Exception;
|
|
1464
1476
|
}(angularportalazure.ValidationsExceptionDotNet));
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@ardimedia/angular-portal-azure",
|
|
3
3
|
"description": "Angular Portal Azure - GUI Framework.",
|
|
4
4
|
"author": "Ardimedia Anstalt <info@ardimedia.com> (http://www.ardimedia.com)",
|
|
5
|
-
"version": "0.2.
|
|
5
|
+
"version": "0.2.209",
|
|
6
6
|
"main": "index.js",
|
|
7
7
|
"typings": "apn.d.ts",
|
|
8
8
|
"dependencies": {
|