There was an error while loading. Please reload this page.
1 parent 16b474f commit 8be65daCopy full SHA for 8be65da
src/js/Exceptions/Exception.ts
@@ -37,6 +37,15 @@ export class Exception {//} extends Error { //ref: can not extend from Error. Ty
37
* @override user JSON.stringify for now, todo: impelemtn real Exception tostring
38
*/
39
toString() {
40
- return JSON.stringify(this);
+ let result = this.stack;
41
+ try {
42
+ result = result || JSON.stringify(this);
43
+ }
44
+ catch (e) { }
45
+
46
+ return result;
47
48
+ ToString() {
49
+ return this.toString();
50
}
51
0 commit comments