All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
error.h File Reference
#include "gusd/api.h"
#include "pxr/pxr.h"
#include "pxr/base/arch/hints.h"
#include "pxr/base/tf/errorMark.h"
#include <UT/UT_ErrorManager.h>
#include <UT/UT_Lock.h>
#include <UT/UT_NonCopyable.h>
#include <UT/UT_WorkBuffer.h>
+ Include dependency graph for error.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


class  GusdPostErrorHelper
class  GusdErrorTransport
class  GusdAutoErrorTransport
class  GusdTfErrorScope


#define GUSD_GENERIC_ERR(sev)   if(sev == UT_ERROR_NONE) /*empty*/ ; else GusdPostErrorHelper(sev)
#define GUSD_ERR()   GusdPostErrorHelper(UT_ERROR_ABORT)
#define GUSD_WARN()   GusdPostErrorHelper(UT_ERROR_WARNING)
#define GUSD_MSG()   GusdPostErrorHelper(UT_ERROR_MESSAGE)


GUSD_API std::string GusdGetErrors (UT_ErrorManager *mgr=UTgetErrorManager(), UT_ErrorSeverity sev=UT_ERROR_NONE)

Macro Definition Documentation

#define GUSD_ERR ( )    GusdPostErrorHelper(UT_ERROR_ABORT)

Definition at line 57 of file error.h.

#define GUSD_GENERIC_ERR (   sev)    if(sev == UT_ERROR_NONE) /*empty*/ ; else GusdPostErrorHelper(sev)

Evaluate and post an error message, based on a configurable reporting severity.

This macros is used as follows:

GUSD_GENERIC_ERR(sev).Msg("Failed because of: %s", reason);

The result of the macro itself is a GusdPostErrorHelper object, through which errors may be posted. If the severity is UT_ERROR_NONE, none of the error-posting code will be invoked.

Definition at line 54 of file error.h.

#define GUSD_MSG ( )    GusdPostErrorHelper(UT_ERROR_MESSAGE)

Definition at line 61 of file error.h.

#define GUSD_WARN ( )    GusdPostErrorHelper(UT_ERROR_WARNING)

Definition at line 59 of file error.h.

Function Documentation

Helper for extracting error messages from mgr. Any errors with a severity greater or equal to sev are included.