| 
                2009/05/22(Fri) 12:01:32 編集(投稿者)
  ■No36150 (例外 さん) に返信
  C#で試してみたのですが、コンパイラが通りませんでした。 VB だと通るのでしょうか?
  > 疑問なのですが、このStackTraceにはフレームワーク側のTraceが入っていないように見えるのですが、 > ユーザ定義のExceptionだからということになるのでしょうか?
  以下のコードで試してみました。
  class Program {   static void Main(string[] args)   {     try {       int a = 0;       a = a / a;     }     catch(Exception ex) {       throw new HogeException(ex.Message, ex);     }   } }
  public class HogeException : Exception {   public HogeException() {}   public HogeException(string message) : base(message) {}   public HogeException(string message, Exception inner) {} }
  で、こうなりました。
     場所 ConsoleApplication2.Program.Main(String[] args) 場所 XXXXXXXXXXX\ConsoleApplication2\ConsoleApplication2\Program.cs:行 18    場所 System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args)    場所 System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)    場所 Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()    場所 System.Threading.ThreadHelper.ThreadStart_Context(Object state)    場所 System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)    場所 System.Threading.ThreadHelper.ThreadStart()
  これは、例外氏のいうフレームワーク側の情報とは違いますか?
  |