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:
parent
1957b4d991
commit
92065462b4
60 changed files with 109 additions and 111 deletions
|
@ -545,7 +545,7 @@ protected:
|
|||
result = tok == TK_EOS && m_error == false;
|
||||
}
|
||||
catch (z3_exception& ex) {
|
||||
std::cerr << ex.msg() << std::endl;
|
||||
std::cerr << ex.what() << std::endl;
|
||||
result = false;
|
||||
}
|
||||
return result;
|
||||
|
@ -1225,7 +1225,7 @@ public:
|
|||
result = parse_directory_core(path);
|
||||
}
|
||||
catch (z3_exception& ex) {
|
||||
std::cerr << ex.msg() << std::endl;
|
||||
std::cerr << ex.what() << std::endl;
|
||||
return false;
|
||||
}
|
||||
return result;
|
||||
|
|
|
@ -264,12 +264,12 @@ public:
|
|||
status = dlctx.rel_query(1, &m_target);
|
||||
}
|
||||
catch (z3_error & ex) {
|
||||
ctx.regular_stream() << "(error \"query failed: " << ex.msg() << "\")" << std::endl;
|
||||
ctx.regular_stream() << "(error \"query failed: " << ex.what() << "\")" << std::endl;
|
||||
print_statistics(ctx);
|
||||
throw ex;
|
||||
}
|
||||
catch (z3_exception& ex) {
|
||||
ctx.regular_stream() << "(error \"query failed: " << ex.msg() << "\")" << std::endl;
|
||||
ctx.regular_stream() << "(error \"query failed: " << ex.what() << "\")" << std::endl;
|
||||
query_exn = true;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -255,7 +255,7 @@ class horn_tactic : public tactic {
|
|||
is_reachable = m_ctx.query(q);
|
||||
}
|
||||
catch (default_exception& ex) {
|
||||
IF_VERBOSE(1, verbose_stream() << ex.msg() << "\n";);
|
||||
IF_VERBOSE(1, verbose_stream() << ex.what() << "\n";);
|
||||
throw ex;
|
||||
}
|
||||
g->inc_depth();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue