فهرست منبع

Show exception details in debugger output

杨博 11 سال پیش
والد
کامیت
78c0414d9c
1فایلهای تغییر یافته به همراه2 افزوده شده و 1 حذف شده
  1. 2 1
      std/cs/internal/Exceptions.hx

+ 2 - 1
std/cs/internal/Exceptions.hx

@@ -30,6 +30,7 @@ import cs.system.Exception;
 }
 
 //should NOT be usable inside haxe code
+@:classCode('override public string Message{ get{ return this.toString(); } }')
 @:nativeGen @:keep @:native("haxe.lang.HaxeException") private class HaxeException extends Exception
 {
 	private var obj:Dynamic;
@@ -62,4 +63,4 @@ import cs.system.Exception;
 
 		return new HaxeException(obj);
 	}
-}
+}