/// <summary>
        /// Static handler for Application.ThreadException
        /// </summary>
        /// <param name="sender">Sender object</param>
        /// <param name="e">Event args</param>
        internal static void ApplicationOnThreadException(object sender, ThreadExceptionEventArgs e)
        {
            frmExceptionBox box = new frmExceptionBox(e.Exception);

            box.ShowDialog();
        }
        /// <summary>
        /// Static handler for Domain.UnhandledException event
        /// </summary>
        /// <param name="sender">Sender object</param>
        /// <param name="e">Event args</param>
        public static void CurrentDomainUnhandledException(object sender, UnhandledExceptionEventArgs e)
        {
            frmExceptionBox box = new frmExceptionBox(e.ExceptionObject as Exception);

            box.ShowDialog();
        }
Ejemplo n.º 3
0
	/// <summary>
        /// Static handler for Domain.UnhandledException event
        /// </summary>
        /// <param name="sender">Sender object</param>
        /// <param name="e">Event args</param>
        public static void CurrentDomainUnhandledException(object sender, UnhandledExceptionEventArgs e)
        {
            frmExceptionBox box = new frmExceptionBox(e.ExceptionObject as Exception);
            box.ShowDialog();
        }
Ejemplo n.º 4
0
 /// <summary>
 /// Static handler for Application.ThreadException
 /// </summary>
 /// <param name="sender">Sender object</param>
 /// <param name="e">Event args</param>
 internal static void ApplicationOnThreadException(object sender, ThreadExceptionEventArgs e)
 {
     frmExceptionBox box = new frmExceptionBox(e.Exception);
     box.ShowDialog();
 }
Ejemplo n.º 5
0
		/// <summary>
		/// Static handler for Domain.UnhandledException event
		/// </summary>
		/// <param name="sender">Sender object</param>
		/// <param name="e">Event args</param>
		static void CurrentDomainUnhandledException(object sender, UnhandledExceptionEventArgs e)
		{
			if (e != null && e.ExceptionObject != null && e.ExceptionObject is Exception)
			{
				log.Error(sender, e.ExceptionObject as Exception);

				frmExceptionBox box = new frmExceptionBox(e.ExceptionObject as Exception);

				box.ShowDialog();
			}
			else
			{
				log.Error("UnhandledException");
			}
		}