ExceptionRoutedEventArgs.ErrorException Property

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Gets the underlying exception or native-level error reported by the event.

Namespace:  System.Windows
Assembly:  System.Windows (in System.Windows.dll)

Syntax

'Declaration
Public ReadOnly Property ErrorException As Exception
public Exception ErrorException { get; }

Property Value

Type: System.Exception
The exception being reported.

Remarks

In Silverlight, many of the possible asynchronous errors are coming from native code that handles the request or a subsystem such as image decoding. The value of ErrorException might surface the native error. For a table of native-level errors and their meanings, see Error Messages. The errors and exceptions obtained as ErrorException are not intended for display to end users because they do not report localized strings that are specific to the executing client.

Version Information

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.