Skip to content
This repository was archived by the owner on Aug 16, 2024. It is now read-only.

Commit 3979369

Browse files
committed
更新: 修改文件编码为UTF-8.
1 parent 6144309 commit 3979369

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

include/mirai/exceptions/mirai_api_http_exception.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
namespace Cyan
99
{
1010
/**
11-
* @brief mirai-api-http Òì³£
11+
* @brief mirai-api-http 异常
1212
*/
1313
class MiraiApiHttpException : public std::runtime_error
1414
{
@@ -18,7 +18,7 @@ namespace Cyan
1818
MiraiApiHttpException(int code, const std::string& error_msg) :
1919
Code(code),
2020
Message(error_msg),
21-
std::runtime_error("mirai-api-http ´íÎó: " + error_msg) {}
21+
std::runtime_error("mirai-api-http 错误: " + error_msg) {}
2222
virtual ~MiraiApiHttpException() = default;
2323
};
2424

include/mirai/exceptions/network_exception.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@
77
namespace Cyan
88
{
99
/**
10-
* @brief ÍøÂç´íÎóÒì³£
10+
* @brief 网络错误异常
1111
*/
1212
class NetworkException : public std::runtime_error
1313
{
1414
public:
15-
NetworkException(): std::runtime_error("ÍøÂç´íÎó.") {}
15+
NetworkException(): std::runtime_error("网络错误.") {}
1616
virtual ~NetworkException() = default;
1717
};
1818

include/mirai/mirai.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
#include "mirai/defs/defs.hpp"
66
#include "mirai/events/events.hpp"
7+
#include "mirai/exceptions/exceptions.hpp"
78
#include "mirai/mirai_bot.hpp"
89

910
#endif // !mirai_cpp__mirai_h_H_

0 commit comments

Comments
 (0)