Diagram.UnhandledException(Exception) Method

Definition

Called when a transaction created by the core design surface throws an exception. If this method returns true the exception is swallowed. Otherwise it ripples up to the default .Net Framework exception handling code. Derived classes can override this method to customise exception handling and error messages. The base class returns false, meaning that all exceptions will be thrown up.

public:
 virtual bool UnhandledException(Exception ^ ex);
public virtual bool UnhandledException (Exception ex);
abstract member UnhandledException : Exception -> bool
override this.UnhandledException : Exception -> bool
Public Overridable Function UnhandledException (ex As Exception) As Boolean

Parameters

ex
Exception

An exception thrown durign a core design surface transaction.

Returns

True if core design surface can't swallow the exception; otherwise false (yes we can swallow it)

Applies to