EAPUtilWriteExceptionToRequestLog Method |
Writes exception information to request log.
Normally exceptions are automatically written to the request log in the normal course of events. However, in the
case where an exception is suppressed that exception will not be automatically written to the request log and this
method may be called. Exceptions logged to the request log will be picked up by the
RequestLogMonitor.
Namespace:
NetQuarry
Assembly:
EAP.Core (in EAP.Core.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax public static void WriteExceptionToRequestLog(
IAppContext cxt,
IDatabase db,
string errorName,
Exception ex
)
Public Shared Sub WriteExceptionToRequestLog (
cxt As IAppContext,
db As IDatabase,
errorName As String,
ex As Exception
)
Parameters
- cxt
- Type: NetQuarryIAppContext
The application context. - db
- Type: NetQuarryIDatabase
The database to which to log. - errorName
- Type: SystemString
For automatically logged exceptions this is the exception name. However, for manually logged exceptions
it may be desirable to provide a more specific error name (somewhat like a log_id).
- ex
- Type: SystemException
The exception.
See Also