|
KanoopCommonQt 2.1.1
Kanoop foundational Qt utility library
|
|
#include <commonexception.h>
Inheritance diagram for CommonException:
Collaboration diagram for CommonException:Public Member Functions | |
| CommonException (const QString &message, qint32 code=0) | |
| Construct a CommonException with a message and optional error code. | |
| void | raise () const override |
| Re-throw this exception. | |
| CommonException * | clone () const override |
| Create a heap-allocated copy of this exception. | |
| virtual QString | message () const |
| Return the error message. | |
| virtual qint32 | code () const |
| Return the numeric error code. | |
A base class for Qt exceptions
Stephen Punak, September 17 2023
Base exception class for KanoopCommonQt, extending QException with a message and error code.
Definition at line 18 of file commonexception.h.
| CommonException::CommonException | ( | const QString & | message, |
| qint32 | code = 0 |
||
| ) |
Construct a CommonException with a message and optional error code.
| message | Human-readable description of the error |
| code | Optional numeric error code (default 0) |
|
inlineoverride |
Create a heap-allocated copy of this exception.
Definition at line 33 of file commonexception.h.
|
inlinevirtual |
Return the numeric error code.
Definition at line 45 of file commonexception.h.
|
inlinevirtual |
Return the error message.
Definition at line 39 of file commonexception.h.
|
inlineoverride |
Re-throw this exception.
Definition at line 29 of file commonexception.h.