DotMSN |

# SBMessageHandler.ExceptionOccurred Event

Occurs when an exception is thrown while handling the incoming or outgoing messages.

[Visual Basic]
Public Event ExceptionOccurred As HandlerExceptionEventHandler
[C#]
public event HandlerExceptionEventHandler ExceptionOccurred;

#### Event Data

The event handler receives an argument of type ExceptionEventArgs containing data related to this event. The following ExceptionEventArgs property provides information specific to this event.

Property | Description
--- | ---
Exception | The exception that was raised

#### See Also

SBMessageHandler Class | XihSolutions.DotMSN Namespace