All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
TfDiagnosticMgr::Delegate Class Referenceabstract

One may set a delegate with the TfDiagnosticMgr which will be called to respond to errors and diagnostics. More...

+ Inheritance diagram for TfDiagnosticMgr::Delegate:

Public Member Functions

virtual void IssueError (TfError const &err)=0
 Called when a TfError is posted. More...
 
virtual void IssueFatalError (TfCallContext const &context, std::string const &msg)=0
 Called when a TF_FATAL_ERROR is issued (or a failed TF_AXIOM). More...
 
virtual void IssueStatus (TfStatus const &status)=0
 Called when a TF_STATUS() is issued. More...
 
virtual void IssueWarning (TfWarning const &warning)=0
 Called when a TF_WARNING() is issued. More...
 

Protected Member Functions

TF_API void _UnhandledAbort () const
 Abort the program, but avoid the session logging mechanism. More...
 

Detailed Description

One may set a delegate with the TfDiagnosticMgr which will be called to respond to errors and diagnostics.

Note
None of the methods in TfDiagnosticMgr::Delegate can be reentrant.

Practically speaking, this means they cannot invoke:

  • TF_ERROR
  • TF_RUNTIME_ERROR
  • TF_CODING_ERROR
  • TF_WARN
  • TF_STATUS

For a more complete list, see diagnostic.h

Definition at line 128 of file diagnosticMgr.h.

Member Function Documentation

TF_API void _UnhandledAbort ( ) const
protected

Abort the program, but avoid the session logging mechanism.

This is intended to be used for fatal error cases where any information has already been logged.

virtual void IssueError ( TfError const &  err)
pure virtual
virtual void IssueFatalError ( TfCallContext const &  context,
std::string const &  msg 
)
pure virtual

Called when a TF_FATAL_ERROR is issued (or a failed TF_AXIOM).

Implemented in UsdUtilsConditionalAbortDiagnosticDelegate, and UsdUtilsCoalescingDiagnosticDelegate.

virtual void IssueStatus ( TfStatus const &  status)
pure virtual
virtual void IssueWarning ( TfWarning const &  warning)
pure virtual

Called when a TF_WARNING() is issued.

Implemented in UsdUtilsConditionalAbortDiagnosticDelegate, and UsdUtilsCoalescingDiagnosticDelegate.


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