InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
GlobalErrorStatePreserver Class Reference

#include <ErrorUtils.h>

Public Member Functions

void DoNotRestoreErrorState ()
 

Detailed Description

Stack-based object used for preserving the error code across a scope. The constructor saves the current error state, and the destructor restores the error state back to the saved state.

Member Function Documentation

void GlobalErrorStatePreserver::DoNotRestoreErrorState ()

Call this to prevent the preserver from restoring the previous error state in its destructor