Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
.NET コードで例外が発生すると、X++ コードは実行を停止して脱落します。エラーメッセージはまったく表示されず、単に機能しなくなります。
どうしてこれなの?それを変更する方法はありますか?
これを解決する1つの方法は次のとおりです。
System.Exception e; // declare
;
try { ... code that can throw clr error } catch (Exception::CLRError) { e = CLRInterop::getLastException(); while( e ) { info( e.get_Message() ); e = e.get_InnerException(); } }
こちらもご覧ください: http://blogs.msdn.com/b/emeadaxsupport/archive/2010/07/22/working-with-clr-exceptions-in-dynamics-ax-x-code.aspx