mirror of
https://github.com/Z3Prover/z3
synced 2025-06-18 20:03:38 +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
|
@ -439,7 +439,7 @@ class set_option_cmd : public set_get_option_cmd {
|
|||
ctx.global_params_updated();
|
||||
}
|
||||
catch (const gparams::exception & ex) {
|
||||
throw cmd_exception(ex.msg());
|
||||
throw cmd_exception(ex.what());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -86,7 +86,7 @@ public:
|
|||
ev(m_target, r);
|
||||
}
|
||||
catch (model_evaluator_exception & ex) {
|
||||
ctx.regular_stream() << "(error \"evaluator failed: " << ex.msg() << "\")" << std::endl;
|
||||
ctx.regular_stream() << "(error \"evaluator failed: " << ex.what() << "\")" << std::endl;
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -89,7 +89,7 @@ public:
|
|||
throw ex;
|
||||
}
|
||||
catch (z3_exception & ex) {
|
||||
ctx.regular_stream() << "(error \"simplifier failed: " << ex.msg() << "\")" << std::endl;
|
||||
ctx.regular_stream() << "(error \"simplifier failed: " << ex.what() << "\")" << std::endl;
|
||||
failed = true;
|
||||
r = m_target;
|
||||
}
|
||||
|
|
|
@ -227,8 +227,8 @@ public:
|
|||
}
|
||||
catch (z3_exception & ex) {
|
||||
result->set_status(l_undef);
|
||||
result->m_unknown = ex.msg();
|
||||
ctx.regular_stream() << "(error \"tactic failed: " << ex.msg() << "\")" << std::endl;
|
||||
result->m_unknown = ex.what();
|
||||
ctx.regular_stream() << "(error \"tactic failed: " << ex.what() << "\")" << std::endl;
|
||||
}
|
||||
ctx.validate_check_sat_result(r);
|
||||
}
|
||||
|
@ -321,7 +321,7 @@ public:
|
|||
exec(t, g, result_goals);
|
||||
}
|
||||
catch (tactic_exception & ex) {
|
||||
ctx.regular_stream() << "(error \"tactic failed: " << ex.msg() << "\")" << std::endl;
|
||||
ctx.regular_stream() << "(error \"tactic failed: " << ex.what() << "\")" << std::endl;
|
||||
failed = true;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue