HDK
|
#include <UT_Error.h>
Public Member Functions | |
UT_Error (const char *error_type, const int error_code, const char *error_string=nullptr, const UT_ErrorSeverity=UT_ERROR_ABORT, const UT_SourceLocation *location=nullptr) | |
virtual | ~UT_Error () |
UT_Error (const UT_Error &)=default | |
UT_Error & | operator= (const UT_Error &)=default |
virtual int64 | getMemoryUsage (bool inclusive) const |
virtual void | getErrorMessage (UT_String &error_str, UT_ErrorSeverity last_severity=UT_ERROR_NONE, bool useheaders=true) const |
virtual void | getErrorFormattedString (UT_WorkBuffer &error_str) const |
const UT_String & | getErrorType () const |
UT_ErrorSeverity | getSeverity () const |
bool | hasError () const |
int | getErrorCode () const |
const UT_String & | getString () const |
const UT_SourceLocation & | getLocation () const |
void | setErrorType (const char *type) |
void | setSeverity (UT_ErrorSeverity) |
void | setErrorString (const char *string) |
void | setErrorCode (int code) |
void | setErrorLocation (const UT_SourceLocation &loc) |
Static Public Member Functions | |
static bool | getErrorFormat (UT_StringHolder &format, const char *error_file, int error_code) |
static bool | getFileString (UT_String &error_str, const char *error_file, int error_code, UT_ErrorSeverity severity, UT_ErrorSeverity last_severity, bool useheaders) |
Definition at line 76 of file UT_Error.h.
UT_Error::UT_Error | ( | const char * | error_type, |
const int | error_code, | ||
const char * | error_string = nullptr , |
||
const UT_ErrorSeverity | = UT_ERROR_ABORT , |
||
const UT_SourceLocation * | location = nullptr |
||
) |
|
virtual |
|
default |
|
inline |
Definition at line 122 of file UT_Error.h.
|
static |
|
virtual |
|
virtual |
|
inline |
Definition at line 119 of file UT_Error.h.
|
static |
|
inline |
Definition at line 124 of file UT_Error.h.
|
inlinevirtual |
Definition at line 97 of file UT_Error.h.
|
inline |
Definition at line 120 of file UT_Error.h.
|
inline |
Definition at line 123 of file UT_Error.h.
|
inline |
Definition at line 121 of file UT_Error.h.
void UT_Error::setErrorLocation | ( | const UT_SourceLocation & | loc | ) |
void UT_Error::setErrorString | ( | const char * | string | ) |
void UT_Error::setErrorType | ( | const char * | type | ) |
void UT_Error::setSeverity | ( | UT_ErrorSeverity | ) |