/// <summary> This class handles exceptions. It should be used in places where it
/// is not known how to handle the exception, and the exception can not
/// be thrown higher in the stack.
///
/// <P>Different options can be registered for each Thread and
/// ThreadGroup. <i>This feature is not implemented yet</i>
///
/// </summary>
publicclassJJ2KExceptionHandler
{
/// <summary> Handles the exception. If no special action is registered for
/// the current thread, then the Exception's stack trace and a
/// descriptive message are printed to standard error and the
/// current thread is stopped.
///
/// <P><i>Registration of special actions is not implemented yet.</i>
///
/// </summary>
/// <param name="e">The exception to handle
///
///
///
/// </param>
//UPGRADE_NOTE: Exception 'java.lang.Throwable' was converted to 'System.Exception' which has different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1100'"
// Test if there is an special action (not implemented yet)
// If no special action
// Print the Exception message and stack to standard error
// including this method in the stack.
//UPGRADE_ISSUE: Method 'java.lang.Throwable.fillInStackTrace' was not converted. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1000_javalangThrowablefillInStackTrace'"
System.Console.Error.WriteLine("The Thread is being terminated bacause an "+"Exception (shown above)\n"+"has been thrown and no special action was "+"defined for this Thread.");
// Stop the thread (do not use stop, since it's deprecated in
// Java 1.2)
//UPGRADE_NOTE: Exception 'java.lang.ThreadDeath' was converted to 'System.ApplicationException' which has different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1100'"