Exemplo n.º 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);
     }
 }
Exemplo n.º 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);
     }
 }