@ardimedia/angular-portal-azure 0.2.314 → 0.2.315
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.
- package/apn.js +10 -8
- package/package.json +1 -1
package/apn.js
CHANGED
|
@@ -1625,14 +1625,16 @@ var angularportalazure;
|
|
|
1625
1625
|
// #region Static Methods
|
|
1626
1626
|
Exception.getOneLineMessage = function (exception) {
|
|
1627
1627
|
var message = '';
|
|
1628
|
-
if (exception.
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1628
|
+
if (exception.Messages !== undefined) {
|
|
1629
|
+
if (exception.Message.toLowerCase().indexOf('cannot insert duplicate key in object') >= 0
|
|
1630
|
+
|| exception.Message.toLowerCase().indexOf('the duplicate key value is') >= 0) {
|
|
1631
|
+
console.debug(exception.Message);
|
|
1632
|
+
return 'Datensatz mit gleichem Key (Schlüssel) bereits vorhanden!';
|
|
1633
|
+
}
|
|
1634
|
+
if (exception.Message.toLowerCase().indexOf('the delete statement conflicted with the reference constraint') >= 0) {
|
|
1635
|
+
console.debug(exception.Message);
|
|
1636
|
+
return 'Datensatz kann nicht gelöscht werden, da noch abhängige Daten vorhanden sind!';
|
|
1637
|
+
}
|
|
1636
1638
|
}
|
|
1637
1639
|
// Add Messages, if available
|
|
1638
1640
|
if (exception.Messages !== undefined && exception.Messages.length > 0) {
|
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.
|
|
5
|
+
"version": "0.2.315",
|
|
6
6
|
"main": "index.js",
|
|
7
7
|
"typings": "apn.d.ts",
|
|
8
8
|
"dependencies": {
|