implement exception handling in some complicated cases
This commit is contained in:
@@ -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());
|
||||
}
|
||||
|
@@ -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());
|
||||
}
|
||||
|
@@ -201,7 +201,7 @@ try {
|
||||
ssla_ = nullptr;
|
||||
la_ = nullptr;
|
||||
}
|
||||
} catch (nf7::LifeExpiredException&) {
|
||||
} catch (nf7::ExpiredException&) {
|
||||
ss->Finish();
|
||||
} catch (nf7::FileHolder::EmptyException&) {
|
||||
ss->Finish();
|
||||
|
Reference in New Issue
Block a user