@ardimedia/angular-portal-azure 0.2.225 → 0.2.227

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 +1 -1
  2. package/apn.js +23 -26
  3. package/package.json +1 -1
package/apn.d.ts CHANGED
@@ -420,8 +420,8 @@ declare namespace angularportalazure {
420
420
  Status: number | undefined;
421
421
  StatusText: string | undefined;
422
422
  Url: string;
423
- static prepareException(response: angular.IHttpPromiseCallbackArg<angularportalazure.Exception> | any): angularportalazure.Exception;
424
423
  static getOneLineMessage(exception: angularportalazure.Exception): string;
424
+ static prepareException(response: angular.IHttpPromiseCallbackArg<angularportalazure.Exception> | any): angularportalazure.Exception;
425
425
  private static processDotNetException1(response);
426
426
  private static processDotNetException2(response);
427
427
  }
package/apn.js CHANGED
@@ -1412,31 +1412,6 @@ var angularportalazure;
1412
1412
  }
1413
1413
  //#endregion
1414
1414
  //#region Static Methods
1415
- // TODO:2017-01-09/hp: [any] will be [Response] in angular2
1416
- Exception.prepareException = function (response) {
1417
- console.log('angularportalazure.Exception.prepareException - Logging Exception: Find more information in following [Responsee] and [Exception].');
1418
- var exception = new angularportalazure.Exception();
1419
- if (response.headers === undefined) {
1420
- console.log('> Get information from [processDotNetException1.data].');
1421
- console.log(response);
1422
- exception = Exception.processDotNetException1(response);
1423
- console.log(exception);
1424
- }
1425
- else {
1426
- console.log('> Get information from [processDotNetException2.json()].');
1427
- console.log(response);
1428
- exception = Exception.processDotNetException2(response);
1429
- console.log(exception);
1430
- }
1431
- exception.convertResponse(response);
1432
- exception.Url = response.url;
1433
- exception.Status = response.status;
1434
- exception.StatusText = response.statusText;
1435
- //// Find a better way to log information, maybe to the database or to Google Analytics.
1436
- console.log(response);
1437
- console.log(exception);
1438
- return exception;
1439
- };
1440
1415
  Exception.getOneLineMessage = function (exception) {
1441
1416
  var message = 'FEHLER ';
1442
1417
  if (exception.Message !== undefined) {
@@ -1456,10 +1431,31 @@ var angularportalazure;
1456
1431
  });
1457
1432
  }
1458
1433
  if (message === 'FEHLER ') {
1459
- message = message + ' : Ihre Internet-Sitzung wurde unterbrochen. Bitte neu anmelden!';
1434
+ message = message + ' : Ihre Internet-Sitzung wurde ev. unterbrochen. Bitte neu anmelden! ' + exception;
1460
1435
  }
1461
1436
  return message;
1462
1437
  };
1438
+ // TODO:2017-01-09/hp: [any] will be [Response] in angular2
1439
+ Exception.prepareException = function (response) {
1440
+ console.log('angularportalazure.Exception.prepareException - Logging Exception: Find more information in the following console messages for [Responsee] and [Exception].');
1441
+ var exception = new angularportalazure.Exception();
1442
+ if (response.headers === undefined) {
1443
+ console.log('> Get information from [processDotNetException1.data].');
1444
+ exception = Exception.processDotNetException1(response);
1445
+ }
1446
+ else {
1447
+ console.log('> Get information from [processDotNetException2.json()].');
1448
+ exception = Exception.processDotNetException2(response);
1449
+ }
1450
+ exception.convertResponse(response);
1451
+ exception.Url = response.url;
1452
+ exception.Status = response.status;
1453
+ exception.StatusText = response.statusText;
1454
+ //// Find a better way to log information, maybe to the database or to Google Analytics.
1455
+ console.log(response);
1456
+ console.log(exception);
1457
+ return exception;
1458
+ };
1463
1459
  Exception.processDotNetException1 = function (response) {
1464
1460
  var exception = new angularportalazure.Exception();
1465
1461
  //#region Convert data to Messages
@@ -1475,6 +1471,7 @@ var angularportalazure;
1475
1471
  // TODO:2017-01-09/hp: Implement this function for angular2
1476
1472
  Exception.processDotNetException2 = function (response) {
1477
1473
  var exception = new angularportalazure.Exception();
1474
+ console.log(response.json());
1478
1475
  if (response.json().data !== undefined) {
1479
1476
  console.log('[angularportalazure.Exception.processDotNetException2] not yet implemented. Implement it to get proper exception data.');
1480
1477
  }
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.225",
5
+ "version": "0.2.227",
6
6
  "main": "index.js",
7
7
  "typings": "apn.d.ts",
8
8
  "dependencies": {