3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-10-03 22:43:56 +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

@ -362,7 +362,7 @@ public:
throw;
}
catch (z3_exception& ex) {
IF_VERBOSE(10, verbose_stream() << ex.msg() << " in or-else\n");
IF_VERBOSE(10, verbose_stream() << ex.what() << " in or-else\n");
throw;
}
catch (const std::exception &ex) {
@ -546,7 +546,7 @@ public:
catch (tactic_exception & ex) {
if (i == 0) {
ex_kind = TACTIC_EX;
ex_msg = ex.msg();
ex_msg = ex.what();
}
}
catch (z3_error & err) {
@ -558,7 +558,7 @@ public:
catch (z3_exception & z3_ex) {
if (i == 0) {
ex_kind = DEFAULT_EX;
ex_msg = z3_ex.msg();
ex_msg = z3_ex.what();
}
}
};
@ -703,7 +703,7 @@ public:
curr_failed = true;
failed = true;
ex_kind = TACTIC_EX;
ex_msg = ex.msg();
ex_msg = ex.what();
}
}
}
@ -725,7 +725,7 @@ public:
curr_failed = true;
failed = true;
ex_kind = DEFAULT_EX;
ex_msg = z3_ex.msg();
ex_msg = z3_ex.what();
}
}
}