Gets the error, if any, that was thrown from the DoWork event handler.

Namespace:  ESRI.ArcGISExplorer.Threading

Assembly:  ESRI.ArcGISExplorer (in ESRI.ArcGISExplorer.dll) Version: (


public Exception Error { get; }
Visual Basic (Declaration)
Public ReadOnly Property Error As Exception

Field Value

The error thrown, or nullNothingnullptra null reference (Nothing in Visual Basic) if the DoWork event handler exited normally with no exception.


If the DoWork event handler threw an unhandled exception, then this exception will be trapped by the ArcGIS Explorer framework, and will be set into this property; if the method completed and returned normally, then this will be nullNothingnullptra null reference (Nothing in Visual Basic). Check this property to report on any worker thread errors from back in the UI thread.

If an exception is caught within the scope of the DoWork event handler, then this property will not be set automatically; if you wish to specifically propagate the caught exception back to the UI thread instead of handling it on the worker thread, then re-throw the exception.

See Also