3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-23 09:05:31 +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

@ -96,7 +96,7 @@ bool proto_model::eval(expr * e, expr_ref & result, bool model_completion) {
}
catch (model_evaluator_exception & ex) {
(void)ex;
TRACE("model_evaluator", tout << ex.msg() << "\n";);
TRACE("model_evaluator", tout << ex.what() << "\n";);
return false;
}
}

View file

@ -198,7 +198,7 @@ namespace smt {
}
catch (z3_exception & ex) {
if (finished_id == UINT_MAX) {
ex_msg = ex.msg();
ex_msg = ex.what();
ex_kind = DEFAULT_EX;
done = true;
}

View file

@ -310,7 +310,7 @@ public:
}
}
catch (rewriter_exception & ex) {
throw tactic_exception(ex.msg());
throw tactic_exception(ex.what());
}
}

View file

@ -959,7 +959,7 @@ namespace smt {
return internalize_term_core(term);
}
catch (z3_exception& ex) {
IF_VERBOSE(1, verbose_stream() << "internalize_term: " << ex.msg() << "\n";);
IF_VERBOSE(1, verbose_stream() << "internalize_term: " << ex.what() << "\n";);
throw;
}
}