implement exception handling in some complicated cases

This commit is contained in:
2022-09-14 15:25:08 +09:00
parent d6a9c62a63
commit 46ddb16128
7 changed files with 13 additions and 17 deletions

View File

@@ -186,7 +186,7 @@ class InlineNode::Lambda final : public nf7::Node::Lambda,
th->Resume(thL, 3);
});
} catch (nf7::LifeExpiredException&) {
} catch (nf7::ExpiredException&) {
} catch (nf7::Exception& e) {
log_->Error(e.msg());
}

View File

@@ -174,7 +174,7 @@ class Node::Lambda final : public nf7::Node::Lambda,
log_->Error("failed to call lua function: "+e.msg());
}
});
} catch (nf7::LifeExpiredException&) {
} catch (nf7::ExpiredException&) {
} catch (nf7::Exception& e) {
log_->Error(e.msg());
}

View File

@@ -201,7 +201,7 @@ try {
ssla_ = nullptr;
la_ = nullptr;
}
} catch (nf7::LifeExpiredException&) {
} catch (nf7::ExpiredException&) {
ss->Finish();
} catch (nf7::FileHolder::EmptyException&) {
ss->Finish();