Click or drag to resize

ServerChannelReplyError Method

Called after an exception is thrown while processing an asynchronous reply 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 ReplyError(
	ReplyEvent reply,
	Exception error
)

Parameters

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

The exception could have been be thrown by either ReplyReceived(ReplyEvent), a ReplyHandler or a ReplyCompleted(ReplyEvent) method.

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

This method is meant to be overridden by classes that extend ServerChannel. This default implementation calls the RequestError(RequestEvent, Exception) method with the request of the reply event and the supplied throwable.

See Also