public class ErrorController : BaseController
| Member | Description | |
|---|---|---|
![]() |
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);
|