@ardimedia/angular-portal-azure 0.2.219 → 0.2.221

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 (2) hide show
  1. package/apn.js +12 -8
  2. package/package.json +1 -1
package/apn.js CHANGED
@@ -1368,10 +1368,10 @@ var angularportalazure;
1368
1368
  exception.StackTrace = responseData.StackTrace;
1369
1369
  exception.InnerException = responseData.InnerException;
1370
1370
  // ValidationsExceptionDotNet
1371
- exception.ClassName = 'Not yet implemented';
1372
- exception.Data = [{ key: 0, value: 'Not yet implemented' }];
1371
+ //exception.ClassName = 'Not yet implemented';
1372
+ //exception.Data = [{ key: 0, value: 'Not yet implemented' }];
1373
1373
  // ValidationResultDotNet
1374
- exception.ValidationResults = [{ ErrorMessage: 'Not yet implemented', MemberNames: [] }];
1374
+ //exception.ValidationResults = [{ ErrorMessage: 'Not yet implemented', MemberNames: [] }];
1375
1375
  };
1376
1376
  ValidationsExceptionDotNet.convertExceptionType = function (exception, responseData) {
1377
1377
  if (responseData.ExceptionType === undefined) {
@@ -1413,15 +1413,14 @@ var angularportalazure;
1413
1413
  console.log('angularportalazure.Exception.prepareException - Logging Exception: Find more information in following [Responsee] and [Exception].');
1414
1414
  var exception = new angularportalazure.Exception();
1415
1415
  if (response.headers === undefined) {
1416
- console.log('> response.headers === undefined. Get information from [.data].');
1416
+ console.log('> Get information from [.data].');
1417
1417
  exception = Exception.processDotNetException1(response);
1418
- exception.convertResponse(response);
1419
1418
  }
1420
1419
  else {
1421
- console.log('> response.headers !== undefined. Get information from [.json()].');
1420
+ console.log('> Get information from [.json()].');
1422
1421
  exception = Exception.processDotNetException2(response);
1423
- exception.convertResponse(response);
1424
1422
  }
1423
+ exception.convertResponse(response);
1425
1424
  exception.Url = response.url;
1426
1425
  exception.Status = response.status;
1427
1426
  exception.StatusText = response.statusText;
@@ -1435,9 +1434,14 @@ var angularportalazure;
1435
1434
  if (exception.Message !== undefined) {
1436
1435
  message = message + ': ' + exception.Message + ' ';
1437
1436
  }
1438
- if (exception.ExceptionMessage !== undefined) {
1437
+ if (exception.ExceptionMessage !== undefined && exception.ExceptionMessage.toLowerCase().indexOf('see the inner exception for details') === 0) {
1439
1438
  message = message + ': ' + exception.ExceptionMessage + ' ';
1440
1439
  }
1440
+ if (exception.ExceptionMessage !== undefined && exception.ExceptionMessage.toLowerCase().indexOf('see the inner exception for details') > 0) {
1441
+ if (exception.InnerException !== undefined) {
1442
+ message = message + ': ' + exception.InnerException.ExceptionMessage + ' ';
1443
+ }
1444
+ }
1441
1445
  if (exception.Messages !== undefined) {
1442
1446
  exception.Messages.forEach(function (item) {
1443
1447
  message = message + '- ' + item + ' ';
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.219",
5
+ "version": "0.2.221",
6
6
  "main": "index.js",
7
7
  "typings": "apn.d.ts",
8
8
  "dependencies": {