This document is for a version of USD that is under development. See this page for the current release.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
exception.h File Reference
+ Include dependency graph for exception.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  TfSkipCallerFrames
 This structure is used to indicate that some number of caller frames should be skipped when capturing exception stack traces at the throw point. More...
 
class  TfBaseException
 The base class for exceptions supported by the Tf exceptions facilities. More...
 

Macros

#define TF_THROW(Exception, Exceptionctorargs...)
 Construct an instance of Exception (which must derive TfBaseException) with Exception-ctor-args and throw it.
 
#define TF_THROW(Exception, TfSkipCallerFrames, Exceptionctorargs...)
 Construct an instance of Exception (which must derive TfBaseException) with Exception-ctor-args and throw it.
 

Macro Definition Documentation

◆ TF_THROW [1/2]

#define TF_THROW (   Exception,
  Exceptionctorargs... 
)

Construct an instance of Exception (which must derive TfBaseException) with Exception-ctor-args and throw it.

Also capture a portion of this thread's current call stack and the throw point's source filename & line number to embed in the exception. If the exception goes unhandled these will be reported in the crash report that Tf's terminate handler generates, or in the unhandled exception message in the python interpreter.

Definition at line 127 of file exception.h.

◆ TF_THROW [2/2]

#define TF_THROW (   Exception,
  TfSkipCallerFrames,
  Exceptionctorargs... 
)

Construct an instance of Exception (which must derive TfBaseException) with Exception-ctor-args and throw it.

Also capture a portion of this thread's current call stack and the throw point's source filename & line number to embed in the exception. If the exception goes unhandled these will be reported in the crash report that Tf's terminate handler generates, or in the unhandled exception message in the python interpreter.

Definition at line 127 of file exception.h.