3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2026-05-06 18:35:18 +00:00

convert z3_exception to tactic exception in try_for

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2026-04-26 16:37:39 -07:00
parent 7461103802
commit 63003b5795

View file

@ -1058,10 +1058,13 @@ public:
scoped_timer timer(m_timeout, &eh);
try {
m_t->operator()(in, result);
} catch (z3_exception &) {
if (in->m().limit().is_canceled())
return;
} catch (z3_error &ex) {
throw ex;
} catch (tactic_exception &) {
throw;
} catch (z3_exception &ex) {
// convert all Z3 exceptions into tactic exceptions.
throw tactic_exception(ex.what());
}
}
}