使用标准异常处理
This commit is contained in:
@@ -82,7 +82,7 @@ namespace ling {
|
|||||||
const std::vector<std::string> &getAnonymity() const;
|
const std::vector<std::string> &getAnonymity() const;
|
||||||
|
|
||||||
/// 解析
|
/// 解析
|
||||||
bool analysis();
|
void analysis();
|
||||||
|
|
||||||
const std::string &getError() const;
|
const std::string &getError() const;
|
||||||
|
|
||||||
|
|||||||
@@ -91,7 +91,7 @@ namespace ling {
|
|||||||
return anonymity;
|
return anonymity;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool Order::analysis() {
|
void Order::analysis() {
|
||||||
for (auto it = cmd.begin(); it != cmd.end(); ++it) {
|
for (auto it = cmd.begin(); it != cmd.end(); ++it) {
|
||||||
auto rules = data.find(*it);
|
auto rules = data.find(*it);
|
||||||
if (rules == data.end()) {
|
if (rules == data.end()) {
|
||||||
@@ -141,7 +141,6 @@ namespace ling {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const std::string &Order::getError() const {
|
const std::string &Order::getError() const {
|
||||||
|
|||||||
Reference in New Issue
Block a user