HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GusdTfErrorScope Class Reference

#include <error.h>

+ Inheritance diagram for GusdTfErrorScope:

Public Member Functions

 GusdTfErrorScope (UT_ErrorSeverity sev=UT_ERROR_ABORT, UT_ErrorManager *mgr=UTgetErrorManager())
 
 ~GusdTfErrorScope ()
 
 operator bool () const
 
UT_ErrorSeverity Update ()
 
bool IsClean () const
 
UT_ErrorSeverity GetLogSeverity () const
 

Protected Member Functions

UT_ErrorSeverity _Update ()
 

Detailed Description

Helper for catching Tf errors and forwarding them to a UT_ErrorManager. Note that it's currently only possible to forward a subset of Tf errors. Warnings and status messages cannot be forwarded.

Definition at line 162 of file error.h.

Constructor & Destructor Documentation

GusdTfErrorScope::GusdTfErrorScope ( UT_ErrorSeverity  sev = UT_ERROR_ABORT,
UT_ErrorManager mgr = UTgetErrorManager() 
)
inline

Construct a scope for capturing Tf errors and forwarding them to mgr. Captured Tf errors are forwarding to mgr with a severity of sev. If sev is UT_ERROR_NONE, the Tf errors will be silently ignored.

Definition at line 168 of file error.h.

GusdTfErrorScope::~GusdTfErrorScope ( )
inline

Definition at line 173 of file error.h.

Member Function Documentation

UT_ErrorSeverity GusdTfErrorScope::_Update ( )
protected
UT_ErrorSeverity GusdTfErrorScope::GetLogSeverity ( ) const
inline

Definition at line 192 of file error.h.

bool GusdTfErrorScope::IsClean ( ) const
inline

Definition at line 190 of file error.h.

GusdTfErrorScope::operator bool ( ) const
inlineexplicit

Definition at line 179 of file error.h.

UT_ErrorSeverity GusdTfErrorScope::Update ( )
inline

Clean any errors on the current scope. Returns the resulting error level.

Definition at line 183 of file error.h.


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