@ardimedia/angular-portal-azure 0.2.206 → 0.2.208
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 +17 -4
- package/package.json +1 -1
package/apn.js
CHANGED
|
@@ -1368,6 +1368,7 @@ var angularportalazure;
|
|
|
1368
1368
|
//#region Static Methods
|
|
1369
1369
|
// TODO:2017-01-09/hp: [any] will be [Response] in angular2
|
|
1370
1370
|
Exception.prepareException = function (response) {
|
|
1371
|
+
console.log('angularportalazure.Exception.prepareException - Logging Exception: Find more information in [Responsee] and [Exception] below. [Exception] does contain data from [Response.]');
|
|
1371
1372
|
var exception = new angularportalazure.Exception();
|
|
1372
1373
|
if (response.headers === undefined) {
|
|
1373
1374
|
exception = Exception.processDotNetException1(response);
|
|
@@ -1396,13 +1397,11 @@ var angularportalazure;
|
|
|
1396
1397
|
exception.StatusText = response.statusText;
|
|
1397
1398
|
}
|
|
1398
1399
|
//// Find a better way to log information, maybe to the database or to Google Analytics.
|
|
1399
|
-
console.log('angularportalazure.Exception.prepareException - Logging Exception: Find more information in [Responsee] and [Exception] below. [Exception] does contain data from [Response.]');
|
|
1400
1400
|
console.log(response);
|
|
1401
1401
|
console.log(exception);
|
|
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,9 +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
|
-
|
|
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;
|
|
1460
1472
|
}
|
|
1473
|
+
exception.ExceptionType = response.json().ExceptionType;
|
|
1461
1474
|
};
|
|
1462
1475
|
return Exception;
|
|
1463
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.208",
|
|
6
6
|
"main": "index.js",
|
|
7
7
|
"typings": "apn.d.ts",
|
|
8
8
|
"dependencies": {
|