Gets/sets value that specifies if to throw exception in synchronous mode.
Namespace:
Aurigma.GraphicsMill
Assembly:
Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
Public Overridable Property ExceptionThrowEnabled As Boolean
public virtual bool ExceptionThrowEnabled { get; set; }
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.