public virtual string details() { #line 71 "/opt/haxe/std/cs/_std/haxe/Exception.hx" if ((this.get_previous() == null)) { #line 71 "/opt/haxe/std/cs/_std/haxe/Exception.hx" string tmp = global::haxe.lang.Runtime.concat("Exception: ", this.get_message()); #line 71 "/opt/haxe/std/cs/_std/haxe/Exception.hx" global::Array <object> tmp1 = this.get_stack(); #line 71 "/opt/haxe/std/cs/_std/haxe/Exception.hx" return(global::haxe.lang.Runtime.concat(tmp, ((((tmp1 == null)) ? ("null") : (global::haxe._CallStack.CallStack_Impl_.toString(tmp1)))))); } else { #line 71 "/opt/haxe/std/cs/_std/haxe/Exception.hx" string result = ""; #line 71 "/opt/haxe/std/cs/_std/haxe/Exception.hx" global::haxe.Exception e = this; #line 71 "/opt/haxe/std/cs/_std/haxe/Exception.hx" global::haxe.Exception prev = null; #line 71 "/opt/haxe/std/cs/_std/haxe/Exception.hx" while ((e != null)) { #line 71 "/opt/haxe/std/cs/_std/haxe/Exception.hx" if ((prev == null)) { #line 71 "/opt/haxe/std/cs/_std/haxe/Exception.hx" string result1 = global::haxe.lang.Runtime.concat("Exception: ", e.get_message()); #line 71 "/opt/haxe/std/cs/_std/haxe/Exception.hx" global::Array <object> tmp2 = e.get_stack(); #line 71 "/opt/haxe/std/cs/_std/haxe/Exception.hx" result = global::haxe.lang.Runtime.concat(global::haxe.lang.Runtime.concat(result1, ((((tmp2 == null)) ? ("null") : (global::haxe._CallStack.CallStack_Impl_.toString(tmp2))))), result); } else { #line 71 "/opt/haxe/std/cs/_std/haxe/Exception.hx" global::Array <object> prevStack = global::haxe._CallStack.CallStack_Impl_.subtract(e.get_stack(), prev.get_stack()); #line 71 "/opt/haxe/std/cs/_std/haxe/Exception.hx" result = global::haxe.lang.Runtime.concat(global::haxe.lang.Runtime.concat(global::haxe.lang.Runtime.concat(global::haxe.lang.Runtime.concat("Exception: ", e.get_message()), ((((prevStack == null)) ? ("null") : (global::haxe._CallStack.CallStack_Impl_.toString(prevStack))))), "\n\nNext "), result); } #line 71 "/opt/haxe/std/cs/_std/haxe/Exception.hx" prev = e; #line 71 "/opt/haxe/std/cs/_std/haxe/Exception.hx" e = e.get_previous(); } #line 71 "/opt/haxe/std/cs/_std/haxe/Exception.hx" return(result); } }
public static string exceptionToString(global::haxe.Exception e) { #line 135 "/opt/haxe/std/haxe/CallStack.hx" if ((e.get_previous() == null)) { #line 136 "/opt/haxe/std/haxe/CallStack.hx" string tmp = global::haxe.lang.Runtime.concat("Exception: ", e.get_message()); #line 136 "/opt/haxe/std/haxe/CallStack.hx" global::Array <object> tmp1 = e.get_stack(); #line 136 "/opt/haxe/std/haxe/CallStack.hx" return(global::haxe.lang.Runtime.concat(tmp, ((((tmp1 == null)) ? ("null") : (global::haxe._CallStack.CallStack_Impl_.toString(tmp1)))))); } #line 138 "/opt/haxe/std/haxe/CallStack.hx" string result = ""; global::haxe.Exception e1 = e; #line 140 "/opt/haxe/std/haxe/CallStack.hx" global::haxe.Exception prev = null; while ((e1 != null)) { #line 142 "/opt/haxe/std/haxe/CallStack.hx" if ((prev == null)) { #line 143 "/opt/haxe/std/haxe/CallStack.hx" string result1 = global::haxe.lang.Runtime.concat("Exception: ", e1.get_message()); #line 143 "/opt/haxe/std/haxe/CallStack.hx" global::Array <object> tmp2 = e1.get_stack(); #line 143 "/opt/haxe/std/haxe/CallStack.hx" result = global::haxe.lang.Runtime.concat(global::haxe.lang.Runtime.concat(result1, ((((tmp2 == null)) ? ("null") : (global::haxe._CallStack.CallStack_Impl_.toString(tmp2))))), result); } else { #line 145 "/opt/haxe/std/haxe/CallStack.hx" global::Array <object> prevStack = global::haxe._CallStack.CallStack_Impl_.subtract(e1.get_stack(), prev.get_stack()); result = global::haxe.lang.Runtime.concat(global::haxe.lang.Runtime.concat(global::haxe.lang.Runtime.concat(global::haxe.lang.Runtime.concat("Exception: ", e1.get_message()), ((((prevStack == null)) ? ("null") : (global::haxe._CallStack.CallStack_Impl_.toString(prevStack))))), "\n\nNext "), result); } #line 148 "/opt/haxe/std/haxe/CallStack.hx" prev = e1; e1 = e1.get_previous(); } #line 151 "/opt/haxe/std/haxe/CallStack.hx" return(result); }