示例#1
0
 static void Main()
 {
     try
     {
         ExceptionSubclass thrower = new ExceptionSubclass();
         thrower.toString();
     }
     catch (java.lang.Throwable hereIAm)
     {
         hereIAm.printStackTrace();
         hereIAm.printStackTrace(java.lang.SystemJ.outJ);
     }
     catch (System.Exception whereAreYou)
     {
         Console.Error.WriteLine(whereAreYou.StackTrace);
     }
 }
示例#2
0
 static void Main()
 {
     try
     {
         ExceptionSubclass thrower = new ExceptionSubclass();
         thrower.toString();
     }
     catch (java.lang.Throwable hereIAm)
     {
         hereIAm.printStackTrace();
         hereIAm.printStackTrace(java.lang.SystemJ.outJ);
     }
     catch (System.Exception whereAreYou)
     {
         Console.Error.WriteLine(whereAreYou.StackTrace);
     }
 }