Exemplo n.º 1
0
        void ExceptionManager_UnhandledException(GLib.UnhandledExceptionArgs args)
        {
            string    msg = "Unhandled unknown exception";
            Exception exc = args.ExceptionObject as Exception;

            if (exc != null)
            {
                msg = "Outer exception:\n" + exc.Message + "\n";
                if (exc.InnerException != null)
                {
                    msg += "Inner exception:\n" + exc.InnerException.Message + "\n";
                }
            }
            Guppy.Message("UNHANDLED EXCEPTION", "An unhandled fatal exception occured in the program:\n" + msg);
            args.ExitApplication = false;
        }
Exemplo n.º 2
0
 void Application_ThreadException(object sender, System.Threading.ThreadExceptionEventArgs e)
 {
     Guppy.Message("UNHANDLED EXCEPTION", "An unhandled fatal exception occured in the program:" + e.Exception.ToString());
 }