ErrorOptions ErrorOptions ErrorOptions ErrorOptions ErrorOptions Enum


Specifies the type of diagnostic error reporting for a thread.

This enumeration has a System.FlagsAttribute attribute that allows a bitwise combination of its member values.

public : enum class ErrorOptions
enum class winrt::Windows::Foundation::Diagnostics::ErrorOptions : uint32_t
public enum ErrorOptions
Public Enum ErrorOptions
var value = Windows.Foundation.Diagnostics.ErrorOptions.forceExceptions;
System.FlagsAttribute ContractVersionAttribute

Windows 10 requirements

Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)


ForceExceptions ForceExceptions ForceExceptions ForceExceptions ForceExceptions 2

Exceptions are reported.

None None None None None 0

No error reporting occurs for the thread.

SuppressExceptions SuppressExceptions SuppressExceptions SuppressExceptions SuppressExceptions 1

Exceptions are suppressed and not reported.

SuppressSetErrorInfo SuppressSetErrorInfo SuppressSetErrorInfo SuppressSetErrorInfo SuppressSetErrorInfo 8

Error information for SetErrorInfo is suppressed and not reported.

UseSetErrorInfo UseSetErrorInfo UseSetErrorInfo UseSetErrorInfo UseSetErrorInfo 4

Error information for SetErrorInfo is used.

See also