Example #1
0
        private void RedirectToFix(WrongClassException wex)
        {
            string url = Url.Parse(fixClassUrl).ResolveTokens().AppendQuery("id", wex.Identifier);

            logger.Warn("Redirecting to '" + url + "' to fix exception: " + wex);
            context.HttpContext.ClearError();
            context.HttpContext.Response.Redirect(url);
        }
Example #2
0
        private void RedirectToFix(WrongClassException wex)
        {
            string url = Url.Parse(editConfig.Installer.FixClassUrl).ResolveTokens().AppendQuery("id", wex.Identifier);

            Trace.WriteLine("Redirecting to '" + url + "' to fix exception: " + wex);
            context.ClearError();
            context.Response.Redirect(url);
        }
 //TODO investigate WrongClassException.Type as equivalent to ex.PersistentClass
 /// <summary>
 /// Initializes a new instance of the <see cref="HibernateObjectRetrievalFailureException"/> class.
 /// </summary>
 /// <param name="ex">The ex.</param>
 public HibernateObjectRetrievalFailureException(WrongClassException ex) : base(ex.EntityName, ex.Identifier, ex.Message, ex)
 {
 }