Jaa


ICoreApplicationUnhandledError Interface

Definition

Adds an error handling event for global error handling from the system that app models can use.

public interface class ICoreApplicationUnhandledError
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.Guid(4041362096, 56585, 17121, 176, 188, 224, 225, 49, 247, 141, 126)]
struct ICoreApplicationUnhandledError
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.Guid(4041362096, 56585, 17121, 176, 188, 224, 225, 49, 247, 141, 126)]
public interface ICoreApplicationUnhandledError
Public Interface ICoreApplicationUnhandledError
Attributes

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

Remarks

The ICoreApplicationUnhandledError mechanism for error handling is primarily for C++ developers who are using Microsoft DirectX. For UWP app using C++, C#, or Visual Basic you should handle UnhandledException, which is exposed by the Application object in that app model.

Most scenarios won't use this interface for either implementation or casting. Instead, most app scenarios will use CoreApplication.UnhandledErrorDetected or similar events provided by the app models for UI frameworks.

Events

UnhandledErrorDetected

Occurs when there is an error in an async completion handler, or an event handler, that wasn't otherwise handled by system or app code.

Applies to