HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
UT_ErrorManager Class Reference

A global error manager scope. More...

#include <UT_ErrorManager.h>

+ Inheritance diagram for UT_ErrorManager:

Public Member Functions

 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 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 ()
 
int getNumErrors () const
 
const UT_ErrorgetError (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, int headerflag=1)
 
UT_ErrorSeverity getSeverity ()
 
UT_ErrorSeverity getErrorState ()
 
void pruneDuplicates ()
 
bool isDisabled () const
 
void setDisabled (bool f)
 
UT_ErrorSeverity updateSeverity (UT_ErrorSeverity sev)
 
void recomputeSeverity ()
 
bool hasDeadlockError () const
 
int64 getMemoryUsage (bool inclusive) const
 
 Scope ()
 
 Scope (UT_ErrorManager &errors)
 
 Scope (int thread)
 
 ~Scope ()
 
UT_ErrorManagergetErrorManager ()
 
int getThread () const
 
UT_ErrorSeverity getSeverity ()
 

Protected Member Functions

void setReadFlag (int state)
 
int getReadFlag () const
 
void setNeedScan (int state)
 
int getNeedScan () const
 
void setDeadlockError (bool onoff)
 

Detailed Description

A global error manager scope.

Definition at line 26 of file UT_ErrorManager.h.

Constructor & Destructor Documentation

UT_ErrorManager::UT_ErrorManager ( )
UT_ErrorManager::~UT_ErrorManager ( )
UT_ErrorManager::~Scope ( )

Member Function Documentation

UT_ErrorSeverity UT_ErrorManager::addDeadlockError ( )
UT_ErrorSeverity UT_ErrorManager::addError ( const char *  type,
int  code,
const char *  msg = 0,
const UT_SourceLocation loc = 0 
)
UT_ErrorSeverity UT_ErrorManager::addFatal ( const char *  type,
int  code,
const char *  msg = 0,
const UT_SourceLocation loc = 0 
)
UT_ErrorSeverity UT_ErrorManager::addGeneric ( const char *  type,
int  code,
const char *  msg,
UT_ErrorSeverity  sev,
const UT_SourceLocation loc = 0 
)
UT_ErrorSeverity UT_ErrorManager::addGeneric ( UT_Error error)
UT_ErrorSeverity UT_ErrorManager::addMessage ( const char *  type,
int  code,
const char *  msg = 0,
const UT_SourceLocation loc = 0 
)
UT_ErrorSeverity UT_ErrorManager::addPrompt ( const char *  type,
int  code,
const char *  msg = 0,
const UT_SourceLocation loc = 0 
)
UT_ErrorSeverity UT_ErrorManager::addWarning ( const char *  type,
int  code,
const char *  msg = 0,
const UT_SourceLocation loc = 0 
)
void UT_ErrorManager::clearAndDestroyErrors ( )
UT_ErrorSeverity UT_ErrorManager::commonError ( UT_CommonErrorCode  what,
const char *  msg = 0 
)
UT_ErrorSeverity UT_ErrorManager::commonWarning ( UT_CommonErrorCode  what,
const char *  msg = 0 
)
int UT_ErrorManager::findError ( const char *  type,
int  code 
) const
const UT_Error& UT_ErrorManager::getError ( int  index) const
inline

Definition at line 83 of file UT_ErrorManager.h.

UT_ErrorManager& UT_ErrorManager::getErrorManager ( )
inline

Definition at line 202 of file UT_ErrorManager.h.

int UT_ErrorManager::getErrorMessages ( UT_String messages,
UT_ErrorSeverity  severity = UT_ERROR_NONE,
int  headerflag = 1 
)
UT_ErrorSeverity UT_ErrorManager::getErrorState ( )
inline

Definition at line 109 of file UT_ErrorManager.h.

int64 UT_ErrorManager::getMemoryUsage ( bool  inclusive) const
inline

Definition at line 146 of file UT_ErrorManager.h.

int UT_ErrorManager::getNeedScan ( ) const
inlineprotected

Definition at line 165 of file UT_ErrorManager.h.

int UT_ErrorManager::getNumErrors ( ) const
inline

Definition at line 82 of file UT_ErrorManager.h.

int UT_ErrorManager::getReadFlag ( ) const
inlineprotected

Definition at line 159 of file UT_ErrorManager.h.

UT_ErrorSeverity UT_ErrorManager::getSeverity ( )
inline

Definition at line 101 of file UT_ErrorManager.h.

UT_ErrorSeverity UT_ErrorManager::getSeverity ( )
inline

Definition at line 205 of file UT_ErrorManager.h.

int UT_ErrorManager::getThread ( ) const
inline

Definition at line 203 of file UT_ErrorManager.h.

bool UT_ErrorManager::hasDeadlockError ( ) const
inline

Definition at line 141 of file UT_ErrorManager.h.

bool UT_ErrorManager::isDisabled ( ) const
inline

Definition at line 113 of file UT_ErrorManager.h.

void UT_ErrorManager::pruneDuplicates ( )
void UT_ErrorManager::recomputeSeverity ( )
inline

Definition at line 135 of file UT_ErrorManager.h.

int UT_ErrorManager::removeError ( int  index)
UT_ErrorManager::Scope ( )
UT_ErrorManager::Scope ( UT_ErrorManager errors)
UT_ErrorManager::Scope ( int  thread)
explicit
void UT_ErrorManager::setDeadlockError ( bool  onoff)
inlineprotected

Definition at line 170 of file UT_ErrorManager.h.

void UT_ErrorManager::setDisabled ( bool  f)
inline

Definition at line 117 of file UT_ErrorManager.h.

void UT_ErrorManager::setNeedScan ( int  state)
protected
void UT_ErrorManager::setReadFlag ( int  state)
protected
UT_ErrorSeverity UT_ErrorManager::sopAddError ( int  code,
const char *  msg = 0,
const UT_SourceLocation loc = 0 
)
inline

Definition at line 59 of file UT_ErrorManager.h.

UT_ErrorSeverity UT_ErrorManager::sopAddFatal ( int  code,
const char *  msg = 0,
const UT_SourceLocation loc = 0 
)
inline

Definition at line 62 of file UT_ErrorManager.h.

UT_ErrorSeverity UT_ErrorManager::sopAddMessage ( int  code,
const char *  msg = 0,
const UT_SourceLocation loc = 0 
)
inline

Definition at line 50 of file UT_ErrorManager.h.

UT_ErrorSeverity UT_ErrorManager::sopAddPrompt ( int  code,
const char *  msg = 0,
const UT_SourceLocation loc = 0 
)
inline

Definition at line 53 of file UT_ErrorManager.h.

UT_ErrorSeverity UT_ErrorManager::sopAddWarning ( int  code,
const char *  msg = 0,
const UT_SourceLocation loc = 0 
)
inline

Definition at line 56 of file UT_ErrorManager.h.

int UT_ErrorManager::stealErrors ( UT_ErrorManager victim,
int  rangestart = 0,
int  rangeend = -1,
UT_ErrorSeverity  severity = UT_ERROR_NONE,
bool  borrow_only = false 
)
UT_ErrorSeverity UT_ErrorManager::systemError ( const char *  msg = 0)
UT_ErrorSeverity UT_ErrorManager::systemWarning ( const char *  msg = 0)
UT_ErrorSeverity UT_ErrorManager::updateSeverity ( UT_ErrorSeverity  sev)
inline

Definition at line 125 of file UT_ErrorManager.h.


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