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

Helper for catching Tf errors and forwarding them to a UT_ErrorManager. More...

Inherits UT_NonCopyable.

Public Member Functions

 GusdTfErrorScope (UT_ErrorSeverity sev=UT_ERROR_ABORT, UT_ErrorManager *mgr=UTgetErrorManager())
 Construct a scope for capturing Tf errors and forwarding them to mgr. More...
 
 operator bool () const
 
UT_ErrorSeverity Update ()
 Clean any errors on the current scope. More...
 
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 ( 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.

Member Function Documentation

UT_ErrorSeverity 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: