コード例 #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;
            }
        }
コード例 #2
0
        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;
            }
        }
コード例 #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);
 }
コード例 #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);
 }
コード例 #5
0
 protected internal void ReportControlError(IndException ex)
 {
     ParentPage.ShowError(ex);
 }