Class qqmusic::utils::Exception
ClassList > qqmusic > utils > Exception
全局异常类
#include <exception.h>
Public Types
Type | Name |
---|---|
enum | Kind 错误类型枚举 |
Public Functions
Type | Name |
---|---|
Exception (Kind kind) 从枚举构造 |
|
Exception (Kind kind, std::string_view reason) 从枚举构造并给出理由 |
|
Exception (unsigned int http_rc) 从HTTP协议状态码构造 |
|
unsigned int | get_error_enum () const 获取当前错误类型枚举 |
std::string | kind () const 返回当前错误类型描述 |
std::string | what () const 返回错误原因 |
Public Types Documentation
enum Kind
错误类型枚举
enum qqmusic::utils::Exception::Kind {
ResponseCodeError = 0,
CredendialExpiredError,
CredentialInvalidError,
LoginError,
SignInvalidError,
DataDestroy,
RuntimeError,
NetworkError,
JsonError,
OperationOutOfTime,
SslError,
UnknownError
};
Public Functions Documentation
function Exception [1/3]
从枚举构造
function Exception [2/3]
从枚举构造并给出理由
function Exception [3/3]
从HTTP协议状态码构造
function get_error_enum
获取当前错误类型枚举
function kind
返回当前错误类型描述
function what
返回错误原因
The documentation for this class was generated from the following file include/qqmusic/utils/exception.h