Click or drag to resize

HttpUtilityWriteExceptionToResponse Method

Write the error message from the exception to the error page.

Namespace:  NetQuarry.Net
Assembly:  EAP.Core (in EAP.Core.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax
public static void WriteExceptionToResponse(
	HttpContext context,
	Exception ex,
	string appKey = null,
	string errorPagePath = null,
	bool endResponse = false
)

Parameters

context
Type: System.WebHttpContext
The HTTP context.
ex
Type: SystemException
The exception to write.
appKey (Optional)
Type: SystemString
The appkey to use when looking up the [appkey]_ErrorPage
errorPagePath (Optional)
Type: SystemString
The virtual path to the error page.
endResponse (Optional)
Type: SystemBoolean
If true, Response.End() is called.
See Also