HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
UT_ErrorManager.h File Reference
#include "UT_API.h"
#include "UT_Array.h"
#include "UT_Error.h"
#include "UT_Function.h"
#include "UT_NonCopyable.h"
#include <SYS/SYS_Deprecated.h>
#include <SYS/SYS_Types.h>
#include <ostream>
+ Include dependency graph for UT_ErrorManager.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  UT_ErrorManager
 A global error manager scope. More...
 
class  UT_ErrorManager
 A global error manager scope. More...
 
struct  UT_ErrorManager::DelayTag
 
class  UT_ErrorManagerUniversalLoggingScope
 

Typedefs

using UT_ErrorList = UT_Array< UT_Error * >
 
using UT_AutoErrorManager = UT_ErrorManager::Scope
 Alias UT_AutoErrorManager as UT_ErrorManager::Scope. More...
 

Functions

UT_API UT_ErrorManagerUTgetErrorManager ()
 
UT_API UT_ErrorManagerUTgetErrorManager (int thraed)
 
UT_API void UTpushErrorManager ()
 
UT_API void UTpushErrorManager (int thread)
 
UT_API void UTpopErrorManager ()
 
UT_API void UTpopErrorManager (int thread)
 
UT_API UT_ErrorSeverity UTaddWarning (const char *type, int code, const char *msg=0, const UT_SourceLocation *loc=0)
 
UT_API UT_ErrorSeverity UTaddPrompt (const char *type, int code, const char *msg=0, const UT_SourceLocation *loc=0)
 
UT_API UT_ErrorSeverity UTaddMessage (const char *type, int code, const char *msg=0, const UT_SourceLocation *loc=0)
 
UT_API UT_ErrorSeverity UTaddError (const char *type, int code, const char *msg=0, const UT_SourceLocation *loc=0)
 
UT_API UT_ErrorSeverity UTaddFatal (const char *type, int code, const char *msg=0, const UT_SourceLocation *loc=0)
 
UT_API UT_ErrorSeverity UTaddSystemError (const char *msg=0)
 
UT_API UT_ErrorSeverity UTaddCommonWarning (UT_CommonErrorCode what, const char *msg=0)
 
UT_API UT_ErrorSeverity UTaddCommonError (UT_CommonErrorCode what, const char *msg=0)
 
UT_API UT_ErrorSeverity UTaddDeadlockError ()
 
UT_API UT_ErrorSeverity UTaddGeneric (UT_ErrorSeverity sev, const char *type, int code, const char *msg=0, const UT_SourceLocation *loc=0)
 Add a generic error message to the global error manager. More...
 
UT_API UT_ErrorSeverity UTaddGeneric (UT_Error *error)
 
UT_API int UTfindError (const char *type, int code)
 
UT_API UT_ErrorSeverity UTgetErrorSeverity ()
 
UT_API bool UThasError ()
 
UT_API int UTcheckOutStream (std::ostream &os, const char *m, const char *path=0)
 
UT_API int UTcheckOutStream (UT_OStream &os, const char *m, const char *path=0)
 

Typedef Documentation

Alias UT_AutoErrorManager as UT_ErrorManager::Scope.

Definition at line 306 of file UT_ErrorManager.h.

Definition at line 31 of file UT_ErrorManager.h.

Function Documentation

UT_API UT_ErrorSeverity UTaddCommonError ( UT_CommonErrorCode  what,
const char *  msg = 0 
)
UT_API UT_ErrorSeverity UTaddCommonWarning ( UT_CommonErrorCode  what,
const char *  msg = 0 
)
UT_API UT_ErrorSeverity UTaddDeadlockError ( )
UT_API UT_ErrorSeverity UTaddError ( const char *  type,
int  code,
const char *  msg = 0,
const UT_SourceLocation loc = 0 
)
UT_API UT_ErrorSeverity UTaddFatal ( const char *  type,
int  code,
const char *  msg = 0,
const UT_SourceLocation loc = 0 
)
UT_API UT_ErrorSeverity UTaddGeneric ( UT_ErrorSeverity  sev,
const char *  type,
int  code,
const char *  msg = 0,
const UT_SourceLocation loc = 0 
)

Add a generic error message to the global error manager.

UT_API UT_ErrorSeverity UTaddGeneric ( UT_Error error)
UT_API UT_ErrorSeverity UTaddMessage ( const char *  type,
int  code,
const char *  msg = 0,
const UT_SourceLocation loc = 0 
)
UT_API UT_ErrorSeverity UTaddPrompt ( const char *  type,
int  code,
const char *  msg = 0,
const UT_SourceLocation loc = 0 
)
UT_API UT_ErrorSeverity UTaddSystemError ( const char *  msg = 0)
UT_API UT_ErrorSeverity UTaddWarning ( const char *  type,
int  code,
const char *  msg = 0,
const UT_SourceLocation loc = 0 
)
UT_API int UTcheckOutStream ( std::ostream &  os,
const char *  m,
const char *  path = 0 
)
UT_API int UTcheckOutStream ( UT_OStream os,
const char *  m,
const char *  path = 0 
)
UT_API int UTfindError ( const char *  type,
int  code 
)
UT_API UT_ErrorManager* UTgetErrorManager ( )
UT_API UT_ErrorManager* UTgetErrorManager ( int  thraed)
UT_API UT_ErrorSeverity UTgetErrorSeverity ( )
UT_API bool UThasError ( )
UT_API void UTpopErrorManager ( )
UT_API void UTpopErrorManager ( int  thread)
UT_API void UTpushErrorManager ( )
UT_API void UTpushErrorManager ( int  thread)