A global error manager scope.
More...
#include <UT_ErrorManager.h>
|
| UT_ErrorManager () |
|
| ~UT_ErrorManager () |
|
UT_ErrorSeverity | addMessage (const char *type, int code, const char *msg=0, const UT_SourceLocation *loc=0) |
|
UT_ErrorSeverity | addPrompt (const char *type, int code, const char *msg=0, const UT_SourceLocation *loc=0) |
|
UT_ErrorSeverity | addWarning (const char *type, int code, const char *msg=0, const UT_SourceLocation *loc=0) |
|
UT_ErrorSeverity | addError (const char *type, int code, const char *msg=0, const UT_SourceLocation *loc=0) |
|
UT_ErrorSeverity | addFatal (const char *type, int code, const char *msg=0, const UT_SourceLocation *loc=0) |
|
UT_ErrorSeverity | sopAddMessage (int code, const char *msg=0, const UT_SourceLocation *loc=0) |
|
UT_ErrorSeverity | sopAddPrompt (int code, const char *msg=0, const UT_SourceLocation *loc=0) |
|
UT_ErrorSeverity | sopAddWarning (int code, const char *msg=0, const UT_SourceLocation *loc=0) |
|
UT_ErrorSeverity | sopAddError (int code, const char *msg=0, const UT_SourceLocation *loc=0) |
|
UT_ErrorSeverity | sopAddFatal (int code, const char *msg=0, const UT_SourceLocation *loc=0) |
|
UT_ErrorSeverity | systemError (const char *msg=0) |
|
UT_ErrorSeverity | systemWarning (const char *msg=0) |
|
UT_ErrorSeverity | commonWarning (UT_CommonErrorCode what, const char *msg=0) |
|
UT_ErrorSeverity | commonError (UT_CommonErrorCode what, const char *msg=0) |
|
UT_ErrorSeverity | commonMessage (UT_CommonErrorCode what, const char *msg=0) |
|
UT_ErrorSeverity | addDeadlockError () |
|
UT_ErrorSeverity | addGeneric (const char *type, int code, const char *msg, UT_ErrorSeverity sev, const UT_SourceLocation *loc=0) |
|
UT_ErrorSeverity | addGeneric (UT_Error *error) |
|
void | clearAndDestroyErrors () |
|
bool | isEmpty () const |
|
int | getNumErrors () const |
|
const UT_Error & | getError (int index) const |
|
int | stealErrors (UT_ErrorManager &victim, int rangestart=0, int rangeend=-1, UT_ErrorSeverity severity=UT_ERROR_NONE, bool borrow_only=false) |
|
int | removeError (int index) |
|
int | findError (const char *type, int code) const |
|
int | getErrorMessages (UT_String &messages, UT_ErrorSeverity severity=UT_ERROR_NONE, bool use_headers=true) |
|
UT_ErrorSeverity | getSeverity () |
|
void | clampSeverity (UT_ErrorSeverity severity) |
|
UT_ErrorSeverity | getErrorState () |
|
void | pruneDuplicates () |
|
bool | isDisabled () const |
|
void | setDisabled (bool f) |
|
bool | isLogging () const |
|
void | setErrorLogging (bool f) |
|
UT_ErrorSeverity | updateSeverity (UT_ErrorSeverity sev) |
|
void | recomputeSeverity () |
|
bool | hasDeadlockError () const |
|
int64 | getMemoryUsage (bool inclusive) const |
|
UT_ErrorList::const_iterator | begin () const |
|
UT_ErrorList::const_iterator | end () const |
|
| Scope (UT_ErrorManager &errors) |
|
| Scope (DelayTag) |
| Construct scope which has not begun yet. Call begin() to start. More...
|
|
| ~Scope () |
| Ends error scope if needed. More...
|
|
UT_ErrorManager & | getErrorManager () |
|
int | getThread () const |
|
UT_ErrorSeverity | getSeverity () |
|
void | setDisabled (bool f) |
|
int | getErrorMessages (UT_String &messages, UT_ErrorSeverity severity=UT_ERROR_NONE, bool use_headers=true) |
| Get error messages. More...
|
|
void | end () |
| Manually end the scope. Subsequent calls will do nothing. More...
|
|
|
| Scope () |
|
| Scope (int thread) |
|
|
void | begin () |
|
void | begin (int thread) |
|
A global error manager scope.
- Examples:
- USD/OBJ_usdcamera.h.
Definition at line 27 of file UT_ErrorManager.h.
UT_ErrorManager::UT_ErrorManager |
( |
| ) |
|
UT_ErrorManager::~UT_ErrorManager |
( |
| ) |
|
UT_ErrorManager::~Scope |
( |
| ) |
|
|
inline |
void UT_ErrorManager::begin |
( |
| ) |
|
Manually begin the scope. Subsequent calls will do nothing until end() is called.
void UT_ErrorManager::begin |
( |
int |
thread | ) |
|
Manually begin the scope. Subsequent calls will do nothing until end() is called.
void UT_ErrorManager::clearAndDestroyErrors |
( |
| ) |
|
void UT_ErrorManager::end |
( |
| ) |
|
Manually end the scope. Subsequent calls will do nothing.
int UT_ErrorManager::findError |
( |
const char * |
type, |
|
|
int |
code |
|
) |
| const |
static int UT_ErrorManager::getErrorManagerTimestamp |
( |
| ) |
|
|
static |
Returns a timestamp that is incremented every time an error of ABORT or higher is logged.
int64 UT_ErrorManager::getMemoryUsage |
( |
bool |
inclusive | ) |
const |
|
inline |
bool UT_ErrorManager::getNeedScan |
( |
| ) |
const |
|
inlineprotected |
int UT_ErrorManager::getNumErrors |
( |
| ) |
const |
|
inline |
bool UT_ErrorManager::getReadFlag |
( |
| ) |
const |
|
inlineprotected |
int UT_ErrorManager::getThread |
( |
| ) |
const |
|
inline |
bool UT_ErrorManager::hasDeadlockError |
( |
| ) |
const |
|
inline |
bool UT_ErrorManager::isDisabled |
( |
| ) |
const |
|
inline |
bool UT_ErrorManager::isEmpty |
( |
| ) |
const |
|
inline |
bool UT_ErrorManager::isLogging |
( |
| ) |
const |
|
inline |
void UT_ErrorManager::pruneDuplicates |
( |
| ) |
|
void UT_ErrorManager::recomputeSeverity |
( |
| ) |
|
|
inline |
int UT_ErrorManager::removeError |
( |
int |
index | ) |
|
UT_ErrorManager::Scope |
( |
| ) |
|
UT_ErrorManager::Scope |
( |
int |
thread | ) |
|
|
explicit |
Push given error manager, must live beyond current scope. This renders all accessors on this class unusable.
void UT_ErrorManager::setDeadlockError |
( |
bool |
onoff | ) |
|
|
inlineprotected |
void UT_ErrorManager::setDisabled |
( |
bool |
f | ) |
|
|
inline |
void UT_ErrorManager::setDisabled |
( |
bool |
f | ) |
|
|
inline |
Disable error accumulation for this scope, note however that the status will be maintained.
Definition at line 252 of file UT_ErrorManager.h.
void UT_ErrorManager::setErrorLogging |
( |
bool |
f | ) |
|
|
inline |
void UT_ErrorManager::setNeedScan |
( |
bool |
needscan | ) |
|
|
protected |
void UT_ErrorManager::setReadFlag |
( |
bool |
state | ) |
|
|
protected |
The documentation for this class was generated from the following file: