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; } }
/// <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); }
/// <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); }