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:
parent
7461103802
commit
63003b5795
1 changed files with 6 additions and 3 deletions
|
|
@ -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());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue