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; }
void Application_ThreadException(object sender, System.Threading.ThreadExceptionEventArgs e) { Guppy.Message("UNHANDLED EXCEPTION", "An unhandled fatal exception occured in the program:" + e.Exception.ToString()); }