@ardimedia/angular-portal-azure 0.2.202 → 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.
Files changed (3) hide show
  1. package/apn.d.ts +2 -1
  2. package/apn.js +10 -22
  3. 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 setExceptionType(response, exception);
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
- exception.ExceptionType = response.data.ExceptionType;
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.setExceptionType(response, 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;
@@ -1406,16 +1406,17 @@ var angularportalazure;
1406
1406
  return exception;
1407
1407
  };
1408
1408
  Exception.getOneLineMessage = function (exception) {
1409
+ console.log(exception);
1409
1410
  var message = 'FEHLER ';
1410
1411
  if (exception.Message !== undefined) {
1411
- message += ': ' + exception.Message + ' ';
1412
+ message = message + ': ' + exception.Message + ' ';
1412
1413
  }
1413
1414
  if (exception.ExceptionMessage !== undefined) {
1414
- message += ': ' + exception.ExceptionMessage + ' ';
1415
+ message = message + ': ' + exception.ExceptionMessage + ' ';
1415
1416
  }
1416
1417
  if (exception.Messages !== undefined) {
1417
1418
  exception.Messages.forEach(function (item) {
1418
- message += '- ' + item + ' ';
1419
+ message = message + '- ' + item + ' ';
1419
1420
  });
1420
1421
  }
1421
1422
  return message;
@@ -1430,22 +1431,6 @@ var angularportalazure;
1430
1431
  i++;
1431
1432
  }
1432
1433
  //#endregion
1433
- //#region Process DbEntityValidationException
1434
- if (response.data.ExceptionType === 'System.Data.Entity.Validation.DbEntityValidationException') {
1435
- exception.ExceptionType = 'DbEntityValidationException';
1436
- }
1437
- //#endregion
1438
- //#region Process DbUpdateConcurrencyException
1439
- if (response.data.ExceptionType === 'System.Data.Entity.Infrastructure.DbUpdateConcurrencyException') {
1440
- exception.ExceptionType = 'DbUpdateConcurrencyException';
1441
- }
1442
- //#endregion
1443
- //#region Process ValidationsException
1444
- // ClassName should by ExceptionType
1445
- if (response.data.ClassName.indexOf('ValidationsException') > 0) {
1446
- exception.ExceptionType = 'ValidationsException';
1447
- }
1448
- //#endregion
1449
1434
  return exception;
1450
1435
  };
1451
1436
  // TODO:2017-01-09/hp: Implement this function for angular2
@@ -1454,7 +1439,7 @@ var angularportalazure;
1454
1439
  console.log('[angularportalazure.Exception.processDotNetException2] not yet implemented.');
1455
1440
  return exception;
1456
1441
  };
1457
- Exception.setExceptionType = function (response, exception) {
1442
+ Exception.setExceptionType1 = function (response, exception) {
1458
1443
  if (response.data.ExceptionType === 'System.Data.Entity.Validation.DbEntityValidationException') {
1459
1444
  exception.ExceptionType = 'DbEntityValidationException';
1460
1445
  return;
@@ -1470,6 +1455,9 @@ var angularportalazure;
1470
1455
  }
1471
1456
  exception.ExceptionType = response.data.ExceptionType;
1472
1457
  };
1458
+ Exception.setExceptionType2 = function (response, exception) {
1459
+ console.log('[angularportalazure.Exception.setExceptionType2] not yet implemented.');
1460
+ };
1473
1461
  return Exception;
1474
1462
  }(angularportalazure.ValidationsExceptionDotNet));
1475
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.202",
5
+ "version": "0.2.204",
6
6
  "main": "index.js",
7
7
  "typings": "apn.d.ts",
8
8
  "dependencies": {