mirror of
https://github.com/Z3Prover/z3
synced 2025-08-02 01:13:18 +00:00
use std::exception as base class to z3_exception
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
1957b4d991
commit
92065462b4
60 changed files with 109 additions and 111 deletions
|
@ -1605,7 +1605,7 @@ void cmd_context::push() {
|
|||
throw ex;
|
||||
}
|
||||
catch (z3_exception & ex) {
|
||||
throw cmd_exception(ex.msg());
|
||||
throw cmd_exception(ex.what());
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1768,7 +1768,7 @@ void cmd_context::check_sat(unsigned num_assumptions, expr * const * assumptions
|
|||
throw ex;
|
||||
}
|
||||
catch (z3_exception & ex) {
|
||||
throw cmd_exception(ex.msg());
|
||||
throw cmd_exception(ex.what());
|
||||
}
|
||||
get_opt()->set_status(r);
|
||||
}
|
||||
|
@ -1793,7 +1793,7 @@ void cmd_context::check_sat(unsigned num_assumptions, expr * const * assumptions
|
|||
m_solver->set_reason_unknown(eh);
|
||||
}
|
||||
else {
|
||||
m_solver->set_reason_unknown(ex.msg());
|
||||
m_solver->set_reason_unknown(ex.what());
|
||||
}
|
||||
r = l_undef;
|
||||
}
|
||||
|
@ -1832,7 +1832,7 @@ void cmd_context::get_consequences(expr_ref_vector const& assumptions, expr_ref_
|
|||
throw ex;
|
||||
}
|
||||
catch (z3_exception & ex) {
|
||||
m_solver->set_reason_unknown(ex.msg());
|
||||
m_solver->set_reason_unknown(ex.what());
|
||||
r = l_undef;
|
||||
}
|
||||
m_solver->set_status(r);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue