CSJ2K.j2k.JJ2KExceptionHandler.handleException C# (CSharp) Метод

handleException() публичный статический Метод

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.

Registration of special actions is not implemented yet.

public static handleException ( System e ) : void
e System The exception to handle /// /// /// ///
Результат void
        public static void handleException(System.Exception e)
        {
            // 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'"
            //e.fillInStackTrace();
            SupportClass.WriteStackTrace(e);
            // Print an explicative message
            FacilityManager.getMsgLogger().println("The Thread is being terminated bacause an " + "Exception (shown above)\n" + "has been thrown and no special action was " + "defined for this Thread.", 0, 0);
            // 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.InvalidOperationException' which has different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1100'"
            throw new System.InvalidOperationException();
        }
JJ2KExceptionHandler