mirror of
https://github.com/Z3Prover/z3
synced 2025-06-10 16:13:25 +00:00
Better error reporting #5746
This commit is contained in:
parent
543c16c73e
commit
88707f37e7
2 changed files with 8 additions and 1 deletions
|
@ -607,7 +607,10 @@ extern "C" {
|
||||||
return Z3_L_UNDEF;
|
return Z3_L_UNDEF;
|
||||||
}
|
}
|
||||||
catch (...) {
|
catch (...) {
|
||||||
to_solver_ref(s)->set_reason_unknown(eh);
|
if (eh.caller_id() == event_handler_caller_t::UNSET_EH_CALLER)
|
||||||
|
to_solver_ref(s)->set_reason_unknown("unclassified exception");
|
||||||
|
else
|
||||||
|
to_solver_ref(s)->set_reason_unknown(eh);
|
||||||
to_solver(s)->set_eh(nullptr);
|
to_solver(s)->set_eh(nullptr);
|
||||||
return Z3_L_UNDEF;
|
return Z3_L_UNDEF;
|
||||||
}
|
}
|
||||||
|
|
|
@ -344,6 +344,10 @@ public:
|
||||||
IF_VERBOSE(10, verbose_stream() << ex.msg() << " in or-else\n");
|
IF_VERBOSE(10, verbose_stream() << ex.msg() << " in or-else\n");
|
||||||
throw;
|
throw;
|
||||||
}
|
}
|
||||||
|
catch (const std::exception &ex) {
|
||||||
|
IF_VERBOSE(10, verbose_stream() << ex.what() << " in or-else\n");
|
||||||
|
throw;
|
||||||
|
}
|
||||||
catch (...) {
|
catch (...) {
|
||||||
IF_VERBOSE(10, verbose_stream() << " unclassified exception in or-else\n");
|
IF_VERBOSE(10, verbose_stream() << " unclassified exception in or-else\n");
|
||||||
// std::current_exception returns a std::exception_ptr, which apparently
|
// std::current_exception returns a std::exception_ptr, which apparently
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue