UnhandledError
UnhandledError
UnhandledError
UnhandledError
Class
Definition
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// This API is not available in Javascript.
- Attributes
Windows 10 requirements
| Device family |
Windows 10 (introduced v10.0.10240.0)
|
| API contract |
Windows.Foundation.UniversalApiContract (introduced v1)
|
Properties
Handled Handled Handled Handled
Gets a value that indicates whether the error has been handled.
public : PlatForm::Boolean Handled { get; }public bool Handled { get; }Public ReadOnly Property Handled As bool// This API is not available in Javascript.
- Value
- PlatForm::Boolean 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.
Methods
Propagate() 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// This API is not available in Javascript.
Remarks
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.