HDK
|
#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>
Go to the source code of this file.
Classes | |
class | GusdPostErrorHelper |
class | GusdErrorTransport |
class | GusdAutoErrorTransport |
class | GusdTfErrorScope |
Macros | |
#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) |
Functions | |
GUSD_API std::string | GusdGetErrors (UT_ErrorManager *mgr=UTgetErrorManager(), UT_ErrorSeverity sev=UT_ERROR_NONE) |
#define GUSD_ERR | ( | ) | GusdPostErrorHelper(UT_ERROR_ABORT) |
#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:
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.
#define GUSD_MSG | ( | ) | GusdPostErrorHelper(UT_ERROR_MESSAGE) |
#define GUSD_WARN | ( | ) | GusdPostErrorHelper(UT_ERROR_WARNING) |
GUSD_API std::string GusdGetErrors | ( | UT_ErrorManager * | mgr = UTgetErrorManager() , |
UT_ErrorSeverity | sev = UT_ERROR_NONE |
||
) |
Helper for extracting error messages from mgr
. Any errors with a severity greater or equal to sev
are included.