Skip to main content
RO_ERROR_REPORTING_FLAGS enumeration

Specifies the behavior of the RoOriginateError and RoTransformError functions.

Syntax


typedef enum  { 
  RO_ERROR_REPORTING_NONE                  = 0x00000000,
  RO_ERROR_REPORTING_SUPPRESSEXCEPTIONS    = 0x00000001,
  RO_ERROR_REPORTING_FORCEEXCEPTIONS       = 0x00000002,
  RO_ERROR_REPORTING_USESETERRORINFO       = 0x00000004,
  RO_ERROR_REPORTING_SUPPRESSSETERRORINFO  = 0x00000008
} RO_ERROR_REPORTING_FLAGS;

Constants

RO_ERROR_REPORTING_NONE

Error functions raise structured exceptions when a debugger is attached.

RO_ERROR_REPORTING_SUPPRESSEXCEPTIONS

Error functions do not raise structured exceptions, even when a debugger is present. Override the behavior of this flag by setting the ForceExceptions flag.

RO_ERROR_REPORTING_FORCEEXCEPTIONS

Error functions raise structured exceptions, even if no debugger is present. This flag supercedes the RO_ERROR_REPORTING_SUPPRESSEXCEPTIONS flag. If this flag is set, structured exceptions are raised even if the RO_ERROR_REPORTING_SUPPRESSEXCEPTIONS flag is set.

RO_ERROR_REPORTING_USESETERRORINFO

Error functions report error strings through a COM object that is attached to the COM channel through the SetRestrictedErrorInfo infrastructure. For the SetRestrictedErrorInfo call to succeed, the thread must be initialized into COM.

RO_ERROR_REPORTING_SUPPRESSSETERRORINFO

Error functions do not report error strings through a COM object that is attached to the COM channel through the SetRestrictedErrorInfo infrastructure.

Remarks

Use the RO_ERROR_REPORTING_FLAGS enumeration with the RoSetErrorReportingFlags function to specify the behavior of the RoOriginateError, RoOriginateErrorW, RoTransformError, and RoTransformErrorW functions.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Header

Roerrorapi.h

See also

SetRestrictedErrorInfo
RoGetErrorReportingFlags
RoOriginateError
RoOriginateErrorW
RoSetErrorReportingFlags
RoTransformError
RoTransformErrorW