3
0
Fork 0
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:
Nikolaj Bjorner 2024-11-04 11:08:15 -08:00
parent 1957b4d991
commit 92065462b4
60 changed files with 109 additions and 111 deletions

View file

@ -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;