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: 2.0.0.1500 (2.0.0.1500)

Syntax

C#
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.

Remarks

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