Esempio n. 1
0
        protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);
            try
            {
                DoSomethingDangerous();
            }
            catch (InvalidOperationException ex)
            {
                string message = "We are sorry but an unknown error has occured. Developers are being beat until it is fixed. Please try again later.";

                ErrorSummary.ShowError(Page, message);
                ErrorSummary.ShowError(Page, ex);
            }
        }