3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-09-01 15:50:40 +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

@ -183,9 +183,9 @@ public:
r = m_solver.check(m_dep.m_literals);
}
catch (z3_exception& ex) {
IF_VERBOSE(1, verbose_stream() << "exception: " << ex.msg() << "\n";);
IF_VERBOSE(1, verbose_stream() << "exception: " << ex.what() << "\n";);
if (m.inc()) {
set_reason_unknown(std::string("(sat.giveup ") + ex.msg() + ')');
set_reason_unknown(std::string("(sat.giveup ") + ex.what() + ')');
return l_undef;
}
r = l_undef;