mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-31 21:15:33 +08:00
refs #297 Added CStatusException, a throwable exception class containing a CStatusMessage.
This commit is contained in:
@@ -21,6 +21,8 @@
|
||||
namespace BlackMisc
|
||||
{
|
||||
|
||||
class CStatusException;
|
||||
|
||||
/*!
|
||||
* Streamable status message, e.g. from Core -> GUI
|
||||
*/
|
||||
@@ -68,6 +70,12 @@ namespace BlackMisc
|
||||
//! \sa QtMessageHandler
|
||||
void toQtLogTriple(QtMsgType *o_type, QString *o_category, QString *o_message) const;
|
||||
|
||||
//! Return a throwable exception object containing this status message.
|
||||
CStatusException asException() const;
|
||||
|
||||
//! If message is empty then do nothing, otherwise throw a CStatusException.
|
||||
void maybeThrow() const;
|
||||
|
||||
//! Message category
|
||||
const CLogCategoryList &getCategories() const { return this->m_categories; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user