@ardimedia/angular-portal-azure 0.2.198 → 0.2.200

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 -0
  2. package/apn.js +12 -1
  3. package/package.json +1 -1
package/apn.d.ts CHANGED
@@ -423,6 +423,7 @@ declare namespace angularportalazure {
423
423
  private static processDotNetException1(response);
424
424
  private static processDotNetException2(response);
425
425
  private static setExceptionType(response, exception);
426
+ getMessageAndExceptionMessage(): string;
426
427
  }
427
428
  }
428
429
  declare namespace angularportalazure {
package/apn.js CHANGED
@@ -1369,6 +1369,7 @@ var angularportalazure;
1369
1369
  angularportalazure.ValidationsExceptionDotNet = ValidationsExceptionDotNet;
1370
1370
  })(angularportalazure || (angularportalazure = {}));
1371
1371
  "use strict";
1372
+ /// <reference path="exceptiondotnet.ts" />
1372
1373
  var angularportalazure;
1373
1374
  (function (angularportalazure) {
1374
1375
  var Exception = (function (_super) {
@@ -1377,7 +1378,7 @@ var angularportalazure;
1377
1378
  return _super.apply(this, arguments) || this;
1378
1379
  }
1379
1380
  //#endregion
1380
- //#region Methods
1381
+ //#region Static Methods
1381
1382
  // TODO:2017-01-09/hp: [any] will be [Response] in angular2
1382
1383
  Exception.prepareException = function (response) {
1383
1384
  console.log('convertException: input [angular.IHttpPromiseCallbackArg<angularportalazure.Exception>]');
@@ -1467,6 +1468,16 @@ var angularportalazure;
1467
1468
  }
1468
1469
  exception.ExceptionType = response.data.ExceptionType;
1469
1470
  };
1471
+ //#endregion
1472
+ //#region Public Methods
1473
+ Exception.prototype.getMessageAndExceptionMessage = function () {
1474
+ if (this.ExceptionMessage === undefined) {
1475
+ return this.Message;
1476
+ }
1477
+ else {
1478
+ return this.Message + " " + this.ExceptionMessage;
1479
+ }
1480
+ };
1470
1481
  return Exception;
1471
1482
  }(angularportalazure.ValidationsExceptionDotNet));
1472
1483
  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.198",
5
+ "version": "0.2.200",
6
6
  "main": "index.js",
7
7
  "typings": "apn.d.ts",
8
8
  "dependencies": {