Click or drag to resize

ServerChannelRequestError Method

Called after an exception is 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 RequestError(
	RequestEvent request,
	Exception error
)

Parameters

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

The exception could have been be thrown by either a RequestReceived(RequestEvent), a RequestHandler or a RequestCompleted(RequestEvent) method.

This method should execute termination logic common to all failed requests, such as performing a database rollback.

This method is meant to be overridden by classes that extend ServerChannel. This default implementation uses the SendErrorReply(String) method to send a reply message containing the message of the exception.

See Also