WARNING: USE THIS SOFTWARE AT YOUR OWN RISK! THIS IS EXPERIMENTAL SOFTWARE NOT INTENDED FOR PRODUCTION USE! Zuble is currently an early stage prototype. As such Zuble is minimally tested and inherently unstable. It is provided for experimental, development, and demonstration purposes only. Zuble QML Types   |  Zuble C++ Classes   |  Zuble Overview
Zuble  0.1
Zuble Framework C++/QML extension API
Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | Friends | List of all members
Zbl::ZblError Class Reference

Data object for thread local error status information. More...

#include <ZblError.h>

Public Member Functions

 ZblError ()
 
 ZblError (const ZblError &err)
 
const QString & facility () const
 
const QString & code () const
 
const QString & message () const
 
const QString description () const
 
bool isError () const
 
bool isOK () const
 

Private Member Functions

void set (const QString &facility, const QString &code, const QString &message)
 
void set (const char *facility, const char *code, const char *message)
 
void clear ()
 

Private Attributes

QString m_facility
 
QString m_code
 
QString m_message
 
bool m_hasError
 

Static Private Attributes

static const QString m_defaultFacility = "Z"
 
static const QString m_defaultCode = "0"
 
static const QString m_defaultMessage = "K"
 

Friends

class ZblThreadErr
 

Detailed Description

Data object for thread local error status information.

Definition at line 41 of file ZblError.h.

Constructor & Destructor Documentation

◆ ZblError() [1/2]

Zbl::ZblError::ZblError ( )

Definition at line 36 of file ZblError.cpp.

◆ ZblError() [2/2]

Zbl::ZblError::ZblError ( const ZblError err)

Definition at line 41 of file ZblError.cpp.

Member Function Documentation

◆ clear()

void Zbl::ZblError::clear ( )
private

Definition at line 80 of file ZblError.cpp.

Referenced by Zbl::ZblThreadErr::clearError(), and ZblError().

◆ code()

const QString & Zbl::ZblError::code ( ) const

Definition at line 94 of file ZblError.cpp.

Referenced by Zbl::ZblThreadErr::logError(), Zbl::ZblException::matches(), and set().

◆ description()

const QString Zbl::ZblError::description ( ) const

Definition at line 104 of file ZblError.cpp.

◆ facility()

const QString & Zbl::ZblError::facility ( ) const

Definition at line 89 of file ZblError.cpp.

Referenced by Zbl::ZblThreadErr::logError(), Zbl::ZblException::matches(), and set().

◆ isError()

bool Zbl::ZblError::isError ( ) const

Definition at line 112 of file ZblError.cpp.

Referenced by Zbl::ZblThreadErr::clearError(), and Zbl::ZblThreadErr::isError().

◆ isOK()

bool Zbl::ZblError::isOK ( ) const

Definition at line 117 of file ZblError.cpp.

◆ message()

const QString & Zbl::ZblError::message ( ) const

Definition at line 99 of file ZblError.cpp.

Referenced by Zbl::ZblThreadErr::logError(), Zbl::ZblException::rethrow(), and set().

◆ set() [1/2]

void Zbl::ZblError::set ( const QString &  facility,
const QString &  code,
const QString &  message 
)
private

Definition at line 50 of file ZblError.cpp.

Referenced by Zbl::ZblThreadErr::raiseError().

◆ set() [2/2]

void Zbl::ZblError::set ( const char *  facility,
const char *  code,
const char *  message 
)
private

Definition at line 65 of file ZblError.cpp.

Friends And Related Function Documentation

◆ ZblThreadErr

friend class ZblThreadErr
friend

Definition at line 43 of file ZblError.h.

Member Data Documentation

◆ m_code

QString Zbl::ZblError::m_code
private

Definition at line 74 of file ZblError.h.

Referenced by clear(), code(), description(), Zbl::ZblThreadErr::getErrorMessage(), set(), and ZblError().

◆ m_defaultCode

const QString Zbl::ZblError::m_defaultCode = "0"
staticprivate

Definition at line 78 of file ZblError.h.

Referenced by clear().

◆ m_defaultFacility

const QString Zbl::ZblError::m_defaultFacility = "Z"
staticprivate

Definition at line 77 of file ZblError.h.

Referenced by clear(), and Zbl::ZblThreadErr::raiseError().

◆ m_defaultMessage

const QString Zbl::ZblError::m_defaultMessage = "K"
staticprivate

Definition at line 79 of file ZblError.h.

Referenced by clear().

◆ m_facility

QString Zbl::ZblError::m_facility
private

◆ m_hasError

bool Zbl::ZblError::m_hasError
private

Definition at line 81 of file ZblError.h.

Referenced by clear(), isError(), isOK(), set(), and ZblError().

◆ m_message

QString Zbl::ZblError::m_message
private

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