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
)
Public Shared Sub WriteExceptionToResponse (
context As HttpContext,
ex As Exception,
Optional appKey As String = Nothing,
Optional errorPagePath As String = Nothing,
Optional endResponse As Boolean = 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