@ardimedia/angular-portal-azure 0.2.203 → 0.2.204
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.d.ts +2 -1
- package/apn.js +6 -19
- package/package.json +1 -1
package/apn.d.ts
CHANGED
|
@@ -423,7 +423,8 @@ declare namespace angularportalazure {
|
|
|
423
423
|
static getOneLineMessage(exception: angularportalazure.Exception): string;
|
|
424
424
|
private static processDotNetException1(response);
|
|
425
425
|
private static processDotNetException2(response);
|
|
426
|
-
private static
|
|
426
|
+
private static setExceptionType1(response, exception);
|
|
427
|
+
private static setExceptionType2(response, exception);
|
|
427
428
|
}
|
|
428
429
|
}
|
|
429
430
|
declare namespace angularportalazure {
|
package/apn.js
CHANGED
|
@@ -1375,7 +1375,7 @@ var angularportalazure;
|
|
|
1375
1375
|
exception = Exception.processDotNetException1(response.data);
|
|
1376
1376
|
exception.ExceptionMessage = response.data.ExceptionMessage;
|
|
1377
1377
|
exception.StackTrace = response.data.StackTrace;
|
|
1378
|
-
|
|
1378
|
+
Exception.setExceptionType1(response, exception);
|
|
1379
1379
|
exception.Type = response.data.Type;
|
|
1380
1380
|
exception.Message = response.data.Message;
|
|
1381
1381
|
exception.MessageDetail = response.data.MessageDetail;
|
|
@@ -1388,7 +1388,7 @@ var angularportalazure;
|
|
|
1388
1388
|
exception = Exception.processDotNetException2(response.data);
|
|
1389
1389
|
exception.ExceptionMessage = response.json().ExceptionMessage;
|
|
1390
1390
|
exception.StackTrace = response.json().StackTrace;
|
|
1391
|
-
Exception.
|
|
1391
|
+
Exception.setExceptionType2(response, exception);
|
|
1392
1392
|
exception.Type = response.json().Type;
|
|
1393
1393
|
exception.Message = response.json().Message;
|
|
1394
1394
|
exception.MessageDetail = response.json().MessageDetail;
|
|
@@ -1431,22 +1431,6 @@ var angularportalazure;
|
|
|
1431
1431
|
i++;
|
|
1432
1432
|
}
|
|
1433
1433
|
//#endregion
|
|
1434
|
-
//#region Process DbEntityValidationException
|
|
1435
|
-
if (response.data.ExceptionType === 'System.Data.Entity.Validation.DbEntityValidationException') {
|
|
1436
|
-
exception.ExceptionType = 'DbEntityValidationException';
|
|
1437
|
-
}
|
|
1438
|
-
//#endregion
|
|
1439
|
-
//#region Process DbUpdateConcurrencyException
|
|
1440
|
-
if (response.data.ExceptionType === 'System.Data.Entity.Infrastructure.DbUpdateConcurrencyException') {
|
|
1441
|
-
exception.ExceptionType = 'DbUpdateConcurrencyException';
|
|
1442
|
-
}
|
|
1443
|
-
//#endregion
|
|
1444
|
-
//#region Process ValidationsException
|
|
1445
|
-
// ClassName should by ExceptionType
|
|
1446
|
-
if (response.data.ClassName.indexOf('ValidationsException') > 0) {
|
|
1447
|
-
exception.ExceptionType = 'ValidationsException';
|
|
1448
|
-
}
|
|
1449
|
-
//#endregion
|
|
1450
1434
|
return exception;
|
|
1451
1435
|
};
|
|
1452
1436
|
// TODO:2017-01-09/hp: Implement this function for angular2
|
|
@@ -1455,7 +1439,7 @@ var angularportalazure;
|
|
|
1455
1439
|
console.log('[angularportalazure.Exception.processDotNetException2] not yet implemented.');
|
|
1456
1440
|
return exception;
|
|
1457
1441
|
};
|
|
1458
|
-
Exception.
|
|
1442
|
+
Exception.setExceptionType1 = function (response, exception) {
|
|
1459
1443
|
if (response.data.ExceptionType === 'System.Data.Entity.Validation.DbEntityValidationException') {
|
|
1460
1444
|
exception.ExceptionType = 'DbEntityValidationException';
|
|
1461
1445
|
return;
|
|
@@ -1471,6 +1455,9 @@ var angularportalazure;
|
|
|
1471
1455
|
}
|
|
1472
1456
|
exception.ExceptionType = response.data.ExceptionType;
|
|
1473
1457
|
};
|
|
1458
|
+
Exception.setExceptionType2 = function (response, exception) {
|
|
1459
|
+
console.log('[angularportalazure.Exception.setExceptionType2] not yet implemented.');
|
|
1460
|
+
};
|
|
1474
1461
|
return Exception;
|
|
1475
1462
|
}(angularportalazure.ValidationsExceptionDotNet));
|
|
1476
1463
|
angularportalazure.Exception = Exception;
|
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.204",
|
|
6
6
|
"main": "index.js",
|
|
7
7
|
"typings": "apn.d.ts",
|
|
8
8
|
"dependencies": {
|