@ardimedia/angular-portal-azure 0.2.201 → 0.2.203

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 +17 -18
  3. package/package.json +1 -1
package/apn.d.ts CHANGED
@@ -420,10 +420,10 @@ declare namespace angularportalazure {
420
420
  StatusText: string | undefined;
421
421
  Url: string;
422
422
  static prepareException(response: angular.IHttpPromiseCallbackArg<angularportalazure.Exception> | any): angularportalazure.Exception;
423
+ static getOneLineMessage(exception: angularportalazure.Exception): string;
423
424
  private static processDotNetException1(response);
424
425
  private static processDotNetException2(response);
425
426
  private static setExceptionType(response, exception);
426
- getOneLineMessage(): string;
427
427
  }
428
428
  }
429
429
  declare namespace angularportalazure {
package/apn.js CHANGED
@@ -331,7 +331,7 @@ var angularportalazure;
331
331
  this.statusBarClass = 'apa-statusbar-info';
332
332
  };
333
333
  Blade.prototype.setStatusBarException = function (exception) {
334
- this.statusBar = exception.getOneLineMessage();
334
+ this.statusBar = angularportalazure.Exception.getOneLineMessage(exception);
335
335
  this.statusBarClass = 'apa-statusbar-error';
336
336
  };
337
337
  //#endregion
@@ -1405,6 +1405,22 @@ var angularportalazure;
1405
1405
  console.log(exception);
1406
1406
  return exception;
1407
1407
  };
1408
+ Exception.getOneLineMessage = function (exception) {
1409
+ console.log(exception);
1410
+ var message = 'FEHLER ';
1411
+ if (exception.Message !== undefined) {
1412
+ message = message + ': ' + exception.Message + ' ';
1413
+ }
1414
+ if (exception.ExceptionMessage !== undefined) {
1415
+ message = message + ': ' + exception.ExceptionMessage + ' ';
1416
+ }
1417
+ if (exception.Messages !== undefined) {
1418
+ exception.Messages.forEach(function (item) {
1419
+ message = message + '- ' + item + ' ';
1420
+ });
1421
+ }
1422
+ return message;
1423
+ };
1408
1424
  Exception.processDotNetException1 = function (response) {
1409
1425
  var exception = new angularportalazure.Exception();
1410
1426
  //#region Convert data to Messages
@@ -1455,23 +1471,6 @@ var angularportalazure;
1455
1471
  }
1456
1472
  exception.ExceptionType = response.data.ExceptionType;
1457
1473
  };
1458
- //#endregion
1459
- //#region Public Methods
1460
- Exception.prototype.getOneLineMessage = function () {
1461
- var message = 'FEHLER ';
1462
- if (this.Message !== undefined) {
1463
- message += ': ' + this.Message + ' ';
1464
- }
1465
- if (this.ExceptionMessage !== undefined) {
1466
- message += ': ' + this.ExceptionMessage + ' ';
1467
- }
1468
- if (this.Messages !== undefined) {
1469
- this.Messages.forEach(function (item) {
1470
- message += '- ' + item + ' ';
1471
- });
1472
- }
1473
- return message;
1474
- };
1475
1474
  return Exception;
1476
1475
  }(angularportalazure.ValidationsExceptionDotNet));
1477
1476
  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.201",
5
+ "version": "0.2.203",
6
6
  "main": "index.js",
7
7
  "typings": "apn.d.ts",
8
8
  "dependencies": {