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); } }