使用标准异常处理

This commit is contained in:
2024-02-07 04:16:05 +08:00
parent 28c68d2871
commit ebedfa5771
2 changed files with 2 additions and 3 deletions

View File

@@ -82,7 +82,7 @@ namespace ling {
const std::vector<std::string> &getAnonymity() const;
/// 解析
bool analysis();
void analysis();
const std::string &getError() const;

View File

@@ -91,7 +91,7 @@ namespace ling {
return anonymity;
}
bool Order::analysis() {
void Order::analysis() {
for (auto it = cmd.begin(); it != cmd.end(); ++it) {
auto rules = data.find(*it);
if (rules == data.end()) {
@@ -141,7 +141,6 @@ namespace ling {
break;
}
}
return true;
}
const std::string &Order::getError() const {