跳转至

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]

从枚举构造

inline qqmusic::utils::Exception::Exception (
    Kind kind
) 


function Exception [2/3]

从枚举构造并给出理由

inline qqmusic::utils::Exception::Exception (
    Kind kind,
    std::string_view reason
) 


function Exception [3/3]

从HTTP协议状态码构造

inline qqmusic::utils::Exception::Exception (
    unsigned int http_rc
) 


function get_error_enum

获取当前错误类型枚举

inline unsigned int qqmusic::utils::Exception::get_error_enum () const


function kind

返回当前错误类型描述

inline std::string qqmusic::utils::Exception::kind () const


function what

返回错误原因

inline std::string qqmusic::utils::Exception::what () const



The documentation for this class was generated from the following file include/qqmusic/utils/exception.h