public Exception(string message, global::haxe.Exception previous, object native) : base(message, (((previous == null)) ? (null) : (previous))) { unchecked { this.__skipStack = 0; { this.__previousException = previous; if (((native != null) && (native is global::System.Exception))) { this.__nativeException = ((global::System.Exception)(((object)(native)))); if ((this.__nativeException.StackTrace == null)) { this.__nativeStack = new global::System.Diagnostics.StackTrace(((int)(1)), ((bool)(true))); this.__ownStack = true; } else { this.__nativeStack = new global::System.Diagnostics.StackTrace(((global::System.Exception)(this.__nativeException)), ((bool)(true))); this.__ownStack = false; } } else { this.__nativeException = ((global::System.Exception)(((object)(this)))); this.__nativeStack = new global::System.Diagnostics.StackTrace(((int)(1)), ((bool)(true))); this.__ownStack = true; } } } }
public virtual object __hx_setField(string field, int hash, object @value, bool handleProperties) { unchecked { #line 7 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\haxe\\Exception.hx" switch (hash) { case 78945784: { #line 7 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\haxe\\Exception.hx" this.__previousException = ((global::haxe.Exception)(@value)); #line 7 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\haxe\\Exception.hx" return(@value); } case 221637784: { #line 7 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\haxe\\Exception.hx" this.__nativeException = ((global::System.Exception)(@value)); #line 7 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\haxe\\Exception.hx" return(@value); } case 1177754921: { #line 7 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\haxe\\Exception.hx" this.__skipStack = ((int)(global::haxe.lang.Runtime.toInt(@value))); #line 7 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\haxe\\Exception.hx" return(@value); } case 1460447810: { #line 7 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\haxe\\Exception.hx" this.__ownStack = global::haxe.lang.Runtime.toBool(@value); #line 7 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\haxe\\Exception.hx" return(@value); } case 863972113: { #line 7 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\haxe\\Exception.hx" this.__nativeStack = ((global::System.Diagnostics.StackTrace)(@value)); #line 7 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\haxe\\Exception.hx" return(@value); } default: { #line 7 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\haxe\\Exception.hx" return(this.__hx_lookupSetField(field, hash, @value)); } } } #line default }
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); }
public ValueException(object @value, global::haxe.Exception previous, object native) : base(global::Std.@string(((object)(@value))), (((previous == null)) ? (null) : (previous)), (((native == null)) ? (null) : (native))) { #line 23 "/opt/haxe/std/haxe/ValueException.hx" { #line 25 "/opt/haxe/std/haxe/ValueException.hx" this.@value = @value; } #line 23 "/opt/haxe/std/haxe/ValueException.hx" { #line 23 "/opt/haxe/std/haxe/ValueException.hx" if (this.__ownStack) { #line 23 "/opt/haxe/std/haxe/ValueException.hx" this.__skipStack++; } } }
public Exception(string message, global::haxe.Exception previous, object native) : base(message, (((previous == null)) ? (null) : (previous))) { unchecked { #line 16 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\haxe\\Exception.hx" this.__skipStack = 0; #line 42 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\haxe\\Exception.hx" { #line 44 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\haxe\\Exception.hx" this.__previousException = previous; #line 46 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\haxe\\Exception.hx" if (((native != null) && (native is global::System.Exception))) { #line 47 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\haxe\\Exception.hx" this.__nativeException = ((global::System.Exception)(((object)(native)))); if ((this.__nativeException.StackTrace == null)) { #line 49 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\haxe\\Exception.hx" this.__nativeStack = new global::System.Diagnostics.StackTrace(((int)(1)), ((bool)(true))); this.__ownStack = true; } else { #line 52 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\haxe\\Exception.hx" this.__nativeStack = new global::System.Diagnostics.StackTrace(((global::System.Exception)(this.__nativeException)), ((bool)(true))); this.__ownStack = false; } } else { #line 56 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\haxe\\Exception.hx" this.__nativeException = ((global::System.Exception)(((object)(this)))); this.__nativeStack = new global::System.Diagnostics.StackTrace(((int)(1)), ((bool)(true))); #line 58 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\haxe\\Exception.hx" this.__ownStack = true; } } } #line default }
public ValueException(object @value, global::haxe.Exception previous, object native) : base(global::Std.@string(((object)(@value))), (((previous == null)) ? (null) : (previous)), (((native == null)) ? (null) : (native))) { #line 25 "C:\\HaxeToolkit\\haxe\\std\\haxe\\ValueException.hx" this.@value = @value; }
public ValueException(object @value, global::haxe.Exception previous, object native) : base(global::Std.@string(((object)(@value))), (((previous == null)) ? (null) : (previous)), (((native == null)) ? (null) : (native))) { this.@value = @value; }