Unhandled​Error Unhandled​Error Unhandled​Error Class


Represents the error data for a system error as reported by an UnhandledErrorDetected event.

public sealed class UnhandledError : IUnhandledErrorpublic sealed class UnhandledError : IUnhandledErrorPublic NotInheritable Class UnhandledError Implements IUnhandledError
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)


Handled Handled Handled

Gets a value that indicates whether the error has been handled.

public bool Handled { get; }public bool Handled { get; }Public ReadOnly Property Handled As bool
bool bool bool

true if the error has been handled. A value of true permits the app to continue. false if the error has not been handled. A value of false can result in the app being terminated once this event propagates to the Windows Runtime system.



Propagate() Propagate() Propagate()

Wraps the underlying error info in a language specific exception, and throws the error.

public void Propagate()public void Propagate()Public Function Propagate() As void


In addition to throwing the language-specific wrapped error, calling this method marks the error as handled (sets Handled to true). However, if an error is returned from a delegate, the handled state is set to false.