---
title: "SyncHandler..::.ExceptionThrowEnabled Property "
canonical: https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_SyncHandler_ExceptionThrowEnabled.htm
product: "Graphics Mill 5.5 for .NET"
---

This documentation is for the old version. [Go to the latest Graphics Mill docs](https://www.graphicsmill.com/docs/gm/)

# SyncHandler.ExceptionThrowEnabled Property 
 
Gets/sets value that specifies if to throw exception in synchronous mode.
 
**Namespace:** [Aurigma.GraphicsMill](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill.htm.md)
 **Assembly:** Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
 
## Syntax
  
```
Public Overridable Property ExceptionThrowEnabled As Boolean
```
 
```csharp
public virtual bool ExceptionThrowEnabled { get; set; }
```
 
### Property Value
Value that specifies if to throw exception in synchronous mode.
 
### Implements
 
[ISyncHandler.ExceptionThrowEnabled](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_ISyncHandler_ExceptionThrowEnabled.htm.md)
 
## Remarks
  
When you are using asynchronous mode, the single way to handle errors is to check [Exception](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_ErrorEventArgs_Exception.htm.md) argument of the [Stopped](https://www.graphicsmill.com/docs/gm5/E_Aurigma_GraphicsMill_SyncHandler_Stopped.htm.md) event. If it is not **null**, it contains the exception object thrown by operation.
 
In synchronous mode you still can use [Stopped](https://www.graphicsmill.com/docs/gm5/E_Aurigma_GraphicsMill_SyncHandler_Stopped.htm.md) 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](https://www.graphicsmill.com/docs/gm5/E_Aurigma_GraphicsMill_SyncHandler_Stopped.htm.md) event only, otherwise it will throw it in common way (in addition to retrieving exception to [Stopped](https://www.graphicsmill.com/docs/gm5/E_Aurigma_GraphicsMill_SyncHandler_Stopped.htm.md) event).
 
If current [SynchronizationMode](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_SyncHandler_SynchronizationMode.htm.md) is not [Sync](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_SynchronizationMode.htm.md), this property is ignored (to avoid vagueness where to handle it when operation is asynchronous).
 
Default value is **true**.
   
## See Also

### Reference

- [SyncHandler Class](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_SyncHandler.htm.md)
- [Aurigma.GraphicsMill Namespace](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill.htm.md)
