mirror of
https://github.com/Z3Prover/z3
synced 2025-04-24 09:35:32 +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
|
@ -202,7 +202,7 @@ public:
|
|||
throw;
|
||||
}
|
||||
else {
|
||||
set_reason_unknown(ex.msg());
|
||||
set_reason_unknown(ex.what());
|
||||
}
|
||||
}
|
||||
return l_undef;
|
||||
|
|
|
@ -710,7 +710,7 @@ private:
|
|||
}
|
||||
}
|
||||
catch (z3_exception& ex) {
|
||||
IF_VERBOSE(1, verbose_stream() << ex.msg() << "\n";);
|
||||
IF_VERBOSE(1, verbose_stream() << ex.what() << "\n";);
|
||||
if (m_queue.in_shutdown()) return;
|
||||
m_queue.shutdown();
|
||||
std::lock_guard<std::mutex> lock(m_mutex);
|
||||
|
@ -718,7 +718,7 @@ private:
|
|||
m_exn_code = ex.error_code();
|
||||
}
|
||||
else {
|
||||
m_exn_msg = ex.msg();
|
||||
m_exn_msg = ex.what();
|
||||
m_exn_code = -1;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -95,7 +95,7 @@ lbool solver::get_consequences(expr_ref_vector const& asms, expr_ref_vector cons
|
|||
return l_undef;
|
||||
}
|
||||
else {
|
||||
set_reason_unknown(ex.msg());
|
||||
set_reason_unknown(ex.what());
|
||||
}
|
||||
throw;
|
||||
}
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
/*++
|
||||
Copyright (c) 2012 Microsoft Corporation
|
||||
/*++ Copyright (c) 2012 Microsoft Corporation
|
||||
|
||||
Module Name:
|
||||
|
||||
|
@ -270,14 +269,14 @@ lbool tactic2solver::check_sat_core2(unsigned num_assumptions, expr * const * as
|
|||
|
||||
}
|
||||
catch (z3_error & ex) {
|
||||
TRACE("tactic2solver", tout << "exception: " << ex.msg() << "\n";);
|
||||
TRACE("tactic2solver", tout << "exception: " << ex.what() << "\n";);
|
||||
m_result->m_proof = pr;
|
||||
throw ex;
|
||||
}
|
||||
catch (z3_exception & ex) {
|
||||
TRACE("tactic2solver", tout << "exception: " << ex.msg() << "\n";);
|
||||
TRACE("tactic2solver", tout << "exception: " << ex.what() << "\n";);
|
||||
m_result->set_status(l_undef);
|
||||
m_result->m_unknown = ex.msg();
|
||||
m_result->m_unknown = ex.what();
|
||||
m_result->m_proof = pr;
|
||||
}
|
||||
m_tactic->collect_statistics(m_result->m_stats);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue