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

#include <NET_Error.h>

+ Inheritance diagram for NET_Error:

Public Member Functions

 NET_Error (const char *error_type, const int error_code, const char *error_string=nullptr, const UT_ErrorSeverity severity=UT_ERROR_ABORT, const UT_SourceLocation *location=nullptr)
 
void getErrorFormattedString (UT_WorkBuffer &error) const override
 
void getErrorMessage (UT_String &error_str, UT_ErrorSeverity last_severity, bool useheaders) const override
 
- Public Member Functions inherited from 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 ~UT_Error ()
 
virtual int64 getMemoryUsage (bool inclusive) const
 
const UT_StringgetErrorType () const
 
UT_ErrorSeverity getSeverity () const
 
int getErrorCode () const
 
const UT_StringgetString () const
 
const UT_SourceLocationgetLocation () 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 const char * type ()
 
- Static Public Member Functions inherited from UT_Error
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)
 

Protected Member Functions

virtual bool translateErrorCode (UT_StringHolder &format, int error_code, bool useheaders) const
 
bool translateErrorMessage (UT_String &error_str, int error_code, UT_ErrorSeverity severity, UT_ErrorSeverity last_severity, bool useheaders) const
 

Detailed Description

Definition at line 40 of file NET_Error.h.

Constructor & Destructor Documentation

NET_Error::NET_Error ( const char *  error_type,
const int  error_code,
const char *  error_string = nullptr,
const UT_ErrorSeverity  severity = UT_ERROR_ABORT,
const UT_SourceLocation location = nullptr 
)

Member Function Documentation

void NET_Error::getErrorFormattedString ( UT_WorkBuffer error) const
overridevirtual

Reimplemented from UT_Error.

void NET_Error::getErrorMessage ( UT_String error_str,
UT_ErrorSeverity  last_severity,
bool  useheaders 
) const
overridevirtual

Reimplemented from UT_Error.

virtual bool NET_Error::translateErrorCode ( UT_StringHolder format,
int  error_code,
bool  useheaders 
) const
protectedvirtual
bool NET_Error::translateErrorMessage ( UT_String error_str,
int  error_code,
UT_ErrorSeverity  severity,
UT_ErrorSeverity  last_severity,
bool  useheaders 
) const
protected
static const char* NET_Error::type ( )
inlinestatic

Definition at line 54 of file NET_Error.h.


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