Teamcenter C++ API Reference  2312
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | Friends | List of all members
Teamcenter::ExceptionPolicy Class Reference

Change from a bulk-reporting ErrorMap policy to an immediate-throw IFail exception policy. RAII class for temporary change and restore. More...

#include <error_map.hxx>

Public Member Functions

 ExceptionPolicy ()
 
 ExceptionPolicy (bool throwOnError)
 
 ~ExceptionPolicy ()
 Restore previous ErrorMap bulk-reporting policy (if different). More...
 

Static Public Member Functions

static bool throwOnError ()
 

Private Member Functions

 ExceptionPolicy (ExceptionPolicy const &)
 
ExceptionPolicyoperator= (ExceptionPolicy const &)
 

Private Attributes

bool m_setThrowOnError
 Need to change state of ErrorMap::s_throwOnError? More...
 

Static Private Attributes

static bool s_overrideThrowOnError
 
static bool s_throwOnError
 Bulk-reporting policy - false by default. More...
 

Friends

class IgnoreExceptionPolicy
 

Detailed Description

Change from a bulk-reporting ErrorMap policy to an immediate-throw IFail exception policy. RAII class for temporary change and restore.

Definition at line 238 of file error_map.hxx.

Constructor & Destructor Documentation

Teamcenter::ExceptionPolicy::ExceptionPolicy ( )

Change from a bulk-reporting to an immediate-throw policy for the lifetime of this object. ErrorMap exception policy

Teamcenter::ExceptionPolicy::ExceptionPolicy ( bool  throwOnError)
explicit

Maybe change from a bulk-reporting to an immediate-throw policy for the lifetime of this object. Note that any active throw-on-error policy always wins!

Parameters
[in]throwOnError.If true, set immediate-throw If false, leave the policy unchanged. ErrorMap exception policy
Teamcenter::ExceptionPolicy::~ExceptionPolicy ( )

Restore previous ErrorMap bulk-reporting policy (if different).

Teamcenter::ExceptionPolicy::ExceptionPolicy ( ExceptionPolicy const &  )
private

Member Function Documentation

ExceptionPolicy& Teamcenter::ExceptionPolicy::operator= ( ExceptionPolicy const &  )
private
static bool Teamcenter::ExceptionPolicy::throwOnError ( )
static

Get current immendiate-throw policy. ErrorMap exception policy

Friends And Related Function Documentation

friend class IgnoreExceptionPolicy
friend

Definition at line 271 of file error_map.hxx.

Member Data Documentation

bool Teamcenter::ExceptionPolicy::m_setThrowOnError
private

Need to change state of ErrorMap::s_throwOnError?

Definition at line 266 of file error_map.hxx.

bool Teamcenter::ExceptionPolicy::s_overrideThrowOnError
staticprivate

Definition at line 270 of file error_map.hxx.

bool Teamcenter::ExceptionPolicy::s_throwOnError
staticprivate

Bulk-reporting policy - false by default.

Definition at line 269 of file error_map.hxx.


The documentation for this class was generated from the following file: