This documentation is for the old version. Go to the latest Graphics Mill docs

SyncHandler.ExceptionThrowEnabled Property

Gets/sets value that specifies if to throw exception in synchronous mode.

Namespace: Aurigma.GraphicsMill
Assembly: Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)

Syntax

Visual Basic
Public Overridable Property ExceptionThrowEnabled As Boolean
C#
public virtual bool ExceptionThrowEnabled { get; set; }

Property Value

Value that specifies if to throw exception in synchronous mode.

Remarks

When you are using asynchronous mode, the single way to handle errors is to check Exception argument of the Stopped event. If it is not null, it contains the exception object thrown by operation.

In synchronous mode you still can use Stopped event to handle errors. However this property enables you to specify how to use standard exception handling mechanism (try/catch block). If it is false, operation will pass exceptions into Stopped event only, otherwise it will throw it in common way (in addition to retrieving exception to Stopped event).

If current SynchronizationMode is not Sync, this property is ignored (to avoid vagueness where to handle it when operation is asynchronous).

Default value is true.

See Also

Reference