UnhandledError UnhandledError UnhandledError UnhandledError Class


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

public : sealed class UnhandledError : IUnhandledError
struct winrt::Windows::ApplicationModel::Core::UnhandledError : IUnhandledError
public sealed class UnhandledError : IUnhandledError
Public 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 Handled

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

public : Platform::Boolean Handled { get; }
bool Handled();
public bool Handled { get; }
Public ReadOnly Property Handled As 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() Propagate()

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

public : void Propagate()
void Propagate() const;
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.

See Also