@ardimedia/angular-portal-azure 0.2.329 → 0.2.331

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 +23 -3
  2. package/package.json +1 -1
package/apn.js CHANGED
@@ -1695,6 +1695,7 @@ var angularportalazure;
1695
1695
  // #endregion
1696
1696
  // #region Static Methods
1697
1697
  Exception.getOneLineMessage = function (exception) {
1698
+ console.debug(exception);
1698
1699
  var message = 'FEHLER ';
1699
1700
  if (exception.Message !== undefined) {
1700
1701
  if (exception.Message.toLowerCase().indexOf('cannot insert duplicate key in object') >= 0
@@ -1706,7 +1707,22 @@ var angularportalazure;
1706
1707
  console.debug(exception.Message);
1707
1708
  return 'Datensatz kann nicht gelöscht werden, da noch abhängige Daten vorhanden sind!';
1708
1709
  }
1710
+ if (exception.Message.toLowerCase().indexOf('see the inner exception for details') >= 0) {
1711
+ // Frist innerException
1712
+ var innerException = exception.InnerException;
1713
+ if (exception.InnerException.Message.toLowerCase().indexOf('see the inner exception for details') >= 0) {
1714
+ // Second innerException
1715
+ var innerException_1 = exception.InnerException.InnerException;
1716
+ if (exception.InnerException.InnerException.Message.toLowerCase().indexOf('see the inner exception for details') >= 0) {
1717
+ // Third innerException
1718
+ var innerException_2 = exception.InnerException.InnerException.InnerException;
1719
+ }
1720
+ }
1721
+ console.debug(exception);
1722
+ return innerException.Message;
1723
+ }
1709
1724
  message = message + exception.Message + ' ';
1725
+ return message;
1710
1726
  }
1711
1727
  if (exception.Messages !== undefined) {
1712
1728
  if (exception.Messages.length > 0) {
@@ -1717,24 +1733,28 @@ var angularportalazure;
1717
1733
  }
1718
1734
  message = message + item;
1719
1735
  });
1736
+ return message;
1720
1737
  }
1721
1738
  }
1722
1739
  if (exception.ExceptionMessage !== undefined && exception.ExceptionMessage.toLowerCase().indexOf('see the inner exception for details') < 0) {
1723
1740
  message = message + ': ' + exception.ExceptionMessage + ' ';
1741
+ return message;
1724
1742
  }
1725
1743
  if (exception.ExceptionMessage !== undefined && exception.ExceptionMessage.toLowerCase().indexOf('see the inner exception for details') >= 0) {
1726
1744
  if (exception.InnerException !== undefined) {
1727
1745
  if (exception.InnerException.InnerException !== undefined) {
1728
1746
  message = message + ': ' + exception.InnerException.InnerException.ExceptionMessage + ' ';
1747
+ return message;
1729
1748
  }
1730
1749
  else {
1731
1750
  message = message + ': ' + exception.InnerException.ExceptionMessage + ' ';
1751
+ return message;
1732
1752
  }
1733
1753
  }
1734
1754
  }
1735
- if (message === 'FEHLER ') {
1736
- message = message + ': JavaScript-Fehler oder Probleme mit der Internetverbindung. Weitere Informationen im Log. ' + exception;
1737
- }
1755
+ // Default handler
1756
+ console.debug(exception);
1757
+ message = message + ': JavaScript-Fehler oder Probleme mit der Internetverbindung. Weitere Informationen im Log (change log to full = debug). ' + exception;
1738
1758
  return message;
1739
1759
  };
1740
1760
  // TODO:2018-10-10/hp: [angular.IHttpPromiseCallbackArg<angularportalazure.Exception>] should be Response
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.329",
5
+ "version": "0.2.331",
6
6
  "main": "index.js",
7
7
  "typings": "apn.d.ts",
8
8
  "dependencies": {