Click or drag to resize

ServerChannelLogRequestError Method

Logs the error that was thrown while processing a request message.

Namespace:  OBCOM.NetSwitchLib.Servers
Assembly:  OBCOM.NetSwitchLib (in OBCOM.NetSwitchLib.dll) Version: 1.48.7760.35650 (1.48.7760.35650)
Syntax
protected virtual void LogRequestError(
	RequestEvent request,
	Exception error
)

Parameters

request
Type: OBCOM.NetSwitchLib.ServersRequestEvent
Describes the request event.
error
Type: SystemException
The error thrown while processing a request message.
Exceptions
ExceptionCondition
ArgumentNullException An argument is null.
Remarks

This method should log the information of the supplied exception. The log record usually includes the message and stack trace of the exception, but the server is free to choose the format and/or contents to be logged.

This method is meant to be overridden by classes that extend ServerChannel. This default implementation logs the message and stack trace of the supplied exception.

See Also