Click or drag to resize

ExceptionHandlerMessage Method

Exception message handling

Namespace:  SOWIWeb.Foundation.App
Assembly:  SOWIWeb.Foundation (in SOWIWeb.Foundation.dll) Version: 19.1.23.1 (19.1.23.622)
Syntax
public static void Message(
	HttpApplication pApplication,
	string pURL = "~/Home/ExceptionMessage"
)

Parameters

pApplication
Type: System.WebHttpApplication
SOWI Web application
pURL (Optional)
Type: SystemString
URL for exception message (default: /Home/ExceptionMessage
Remarks
The exception object save to LastException.
Examples
Source code in Global.asax.cs
/// <summary>
/// Application Error Handling with Redirection
/// </summary>
/// <seealso cref="SOWIWeb.Foundation.App.ExceptionHandler.Message(System.Web.HttpApplication, string)"/>
protected void Application_Error(object sender, EventArgs e)
{
    SOWIWeb.Foundation.App.ExceptionHandler.Message(this);
}
See Also