protected void ASPxGridView1_CustomErrorText(object sender, DevExpress.Web.ASPxGridViewCustomErrorTextEventArgs e)
 {
     if (e.Exception is CustomExceptions.MyException)
     {
         e.ErrorText = e.Exception.Message;
     }
 }
Esempio n. 2
0
        protected void UsersGridView_CustomErrorText(object sender, DevExpress.Web.ASPxGridViewCustomErrorTextEventArgs e)
        {
            e.ErrorText = e.Exception.Message;
            var lineNumber = new System.Diagnostics.StackTrace(e.Exception, true).GetFrame(0).GetFileLineNumber();

            AppUtils.AddErrorLog(e.Exception.HResult, e.Exception.Source, $"{e.Exception.Message} - {e.Exception.StackTrace}",
                                 Context.User.Identity.GetUserName(), out errorLogId, lineNumber, -1, -1);
        }
 protected void aspxgvAgents_CustomErrorText(object sender, DevExpress.Web.ASPxGridViewCustomErrorTextEventArgs e)
 {
     e.ErrorText = e.Exception.ToString();
 }
 protected void ASPxgvTaxAccounts_CustomErrorText(object sender, DevExpress.Web.ASPxGridViewCustomErrorTextEventArgs e)
 {
     e.ErrorText = e.Exception.InnerException.ToString();
 }