使用标准异常处理
This commit is contained in:
@@ -82,7 +82,7 @@ namespace ling {
|
||||
const std::vector<std::string> &getAnonymity() const;
|
||||
|
||||
/// 解析
|
||||
bool analysis();
|
||||
void analysis();
|
||||
|
||||
const std::string &getError() const;
|
||||
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user