Esempio n. 1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                IndException indExc = (IndException)this.Session[SessionStrings.ERROR_MESSAGE];

                txtErrorMessage.Text = indExc.Message;
                txtStackTrace.Text   = indExc.StackTrace;


                this.Session[SessionStrings.ERROR_MESSAGE] = null;
            }
        }
        internal void ReportError(IndException ex)
        {
            Control errorHandlerControl = GetErrorHandlerControl();

            if (errorHandlerControl is IndBaseControl)
            {
                ((IndBaseControl)errorHandlerControl).ReportControlError(ex);
                return;
            }
            if (errorHandlerControl is IndBasePage)
            {
                ((IndBasePage)errorHandlerControl).ShowError(ex);
                return;
            }
        }
Esempio n. 3
0
 /// <summary>
 /// Displays an error pop-up
 /// </summary>
 /// <param name="errorMsg">The message displayed in the pop-up</param>
 protected internal virtual void ShowError(IndException indExc)
 {
     AddError(indExc.Message);
 }
Esempio n. 4
0
 /// <summary>
 /// Override the show error method in IndBasePage
 /// </summary>
 /// <param name="indExc"></param>
 protected internal override void ShowError(IndException indExc)
 {
     AddError(indExc.Message);
 }
 protected internal void ReportControlError(IndException ex)
 {
     ParentPage.ShowError(ex);
 }