|
DtkCore
DTK Core module
|
对于错误的包装类 更多...
#include <derror.h>
Public 成员函数 | |
| DError () noexcept | |
| 默认构造函数 | |
| DError (const DError &e) noexcept | |
| 拷贝构造函数 | |
| DError (DError &&e) noexcept | |
| 移动构造函数 | |
| DError (qint64 code, const QString &msg) noexcept | |
| 构造函数 | |
| DError (qint64 code, QString &&msg) noexcept | |
| 构造函数 | |
| DError & | operator= (const DError &e) |
| 重载拷贝赋值运算符 | |
| DError & | operator= (DError &&e) |
| 重载移动赋值运算符 | |
| ~DError ()=default | |
| 默认析构函数 | |
| qint64 | getErrorCode () const noexcept |
| 获取错误代码 | |
| void | setErrorCode (qint64 code) &noexcept |
| 设置错误代码 | |
| const QString & | getErrorMessage () const & |
| 获取错误信息 | |
| QString | getErrorMessage () const && |
| 获取错误信息 | |
| void | setErrorMessage (const QString &msg) & |
| 设置错误信息 | |
友元 | |
| bool | operator== (const DError &x, const DError &y) noexcept |
| 重载相等运算符 | |
| bool | operator!= (const DError &x, const DError &y) noexcept |
| 重载不等运算符 | |
| QDebug | operator<< (QDebug debug, const DError &e) |
| 重载输出运算符 | |
对于错误的包装类
|
inlinenoexcept |
默认构造函数
|
inlinenoexcept |
移动构造函数
|
inlinenoexcept |
构造函数
| [in] | code | 错误代码 |
| [in] | msg | 错误信息 |
|
inlinenoexcept |
构造函数
| [in] | code | 错误代码 |
| [in] | msg | 错误信息 |
|
inlinenoexcept |
获取错误代码
|
inline |
获取错误信息
|
inline |
获取错误信息
|
inlinenoexcept |
设置错误代码
| [in] | code | 错误代码 |
|
inline |
设置错误信息
| [in] | msg | 错误信息 |