Class ErrorController
West Wind Web Toolkit for ASP.NET
 Class ErrorController
System.Object
  System.Web.Mvc.ControllerBase
    System.Web.Mvc.Controller
      Westwind.Web.Mvc.BaseController
        Westwind.Web.Mvc.ErrorController
public class ErrorController : BaseController

Class Members

MemberDescription
Constructor
CauseError
public ActionResult CauseError();
ShowError Displays a generic error message
public ActionResult ShowError(string title,
    string message,
    string redirectTo,
    bool isHtml);
ShowErrorFromModel Displays a generic error message but allows passing a view model directly for additional flexibility
public ActionResult ShowErrorFromModel(ErrorViewModel errorModel);
ShowErrorPageResult Static method that can be called from outside of MVC requests (like in Application_Error) to display an error View.
public static ActionResult ShowErrorPageResult(string title,
    string message,
    string redirectTo,
    bool isHtml);
public static ActionResult ShowErrorPageResult(ErrorViewModel errorModel);
ShowMessage
public ActionResult ShowMessage(string title,
    string message,
    string redirectTo,
    bool isHtml);
ShowMessagePageResult Static method that can be called from outside of MVC requests (like in Application_Error) to display an error View.
public static ActionResult ShowMessagePageResult(string title,
    string message,
    string redirectTo,
    bool isHtml);
public static ActionResult ShowMessagePageResult(ErrorViewModel errorModel);

Requirements

Namespace: Westwind.Web.Mvc
Assembly: westwind.web.mvc.dll

Last Updated: 12/15/12 | © West Wind Technologies, 1996-2012
Comment or report problem with topic