Ejemplo n.º 1
0
        static void MyHandler(object sender, UnhandledExceptionEventArgs args)
        {
            Logging.DisablePrimaryWriting(true);
            Exception e = (Exception)args.ExceptionObject;

            Logging.LogCriticalException("SYSTEM CRITICAL EXCEPTION: " + e.ToString());
            ButterflyEnvironment.SendMassMessage("A fatal error crashed the server, server shutting down.");
            ButterflyEnvironment.PreformShutDown(true);
        }
Ejemplo n.º 2
0
 private static void MyHandler(object sender, UnhandledExceptionEventArgs args)
 {
     Logging.DisablePrimaryWriting(true);
     Logging.LogCriticalException("SYSTEM CRITICAL EXCEPTION: " + ((Exception)args.ExceptionObject).ToString());
     ButterflyEnvironment.PreformShutDown(true);
 }