mirror of
https://github.com/Z3Prover/z3
synced 2025-11-06 14:26:03 +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
|
|
@ -168,7 +168,7 @@ extern "C" {
|
|||
}
|
||||
r = l_undef;
|
||||
if (!mk_c(c)->m().inc()) {
|
||||
to_optimize_ptr(o)->set_reason_unknown(ex.msg());
|
||||
to_optimize_ptr(o)->set_reason_unknown(ex.what());
|
||||
}
|
||||
else {
|
||||
mk_c(c)->handle_exception(ex);
|
||||
|
|
@ -364,7 +364,7 @@ extern "C" {
|
|||
}
|
||||
}
|
||||
catch (z3_exception& e) {
|
||||
errstrm << e.msg();
|
||||
errstrm << e.what();
|
||||
ctx = nullptr;
|
||||
SET_ERROR_CODE(Z3_PARSER_ERROR, errstrm.str());
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue