@ardimedia/angular-portal-azure 0.2.201 → 0.2.202
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.d.ts +1 -1
- package/apn.js +16 -18
- 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 =
|
|
334
|
+
this.statusBar = angularportalazure.Exception.getOneLineMessage(exception);
|
|
335
335
|
this.statusBarClass = 'apa-statusbar-error';
|
|
336
336
|
};
|
|
337
337
|
//#endregion
|
|
@@ -1405,6 +1405,21 @@ var angularportalazure;
|
|
|
1405
1405
|
console.log(exception);
|
|
1406
1406
|
return exception;
|
|
1407
1407
|
};
|
|
1408
|
+
Exception.getOneLineMessage = function (exception) {
|
|
1409
|
+
var message = 'FEHLER ';
|
|
1410
|
+
if (exception.Message !== undefined) {
|
|
1411
|
+
message += ': ' + exception.Message + ' ';
|
|
1412
|
+
}
|
|
1413
|
+
if (exception.ExceptionMessage !== undefined) {
|
|
1414
|
+
message += ': ' + exception.ExceptionMessage + ' ';
|
|
1415
|
+
}
|
|
1416
|
+
if (exception.Messages !== undefined) {
|
|
1417
|
+
exception.Messages.forEach(function (item) {
|
|
1418
|
+
message += '- ' + item + ' ';
|
|
1419
|
+
});
|
|
1420
|
+
}
|
|
1421
|
+
return message;
|
|
1422
|
+
};
|
|
1408
1423
|
Exception.processDotNetException1 = function (response) {
|
|
1409
1424
|
var exception = new angularportalazure.Exception();
|
|
1410
1425
|
//#region Convert data to Messages
|
|
@@ -1455,23 +1470,6 @@ var angularportalazure;
|
|
|
1455
1470
|
}
|
|
1456
1471
|
exception.ExceptionType = response.data.ExceptionType;
|
|
1457
1472
|
};
|
|
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
1473
|
return Exception;
|
|
1476
1474
|
}(angularportalazure.ValidationsExceptionDotNet));
|
|
1477
1475
|
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.
|
|
5
|
+
"version": "0.2.202",
|
|
6
6
|
"main": "index.js",
|
|
7
7
|
"typings": "apn.d.ts",
|
|
8
8
|
"dependencies": {
|