mirror of
https://github.com/Z3Prover/z3
synced 2026-01-31 06:17:55 +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
|
|
@ -35,7 +35,7 @@ z3_error::z3_error(unsigned error_code):m_error_code(error_code) {
|
|||
SASSERT(error_code != 0);
|
||||
}
|
||||
|
||||
char const * z3_error::msg() const {
|
||||
char const * z3_error::what() const {
|
||||
switch (m_error_code) {
|
||||
case ERR_MEMOUT: return "out of memory";
|
||||
case ERR_TIMEOUT: return "timeout";
|
||||
|
|
@ -67,6 +67,6 @@ default_exception::default_exception(fmt, char const* msg, ...) {
|
|||
m_msg = out.str();
|
||||
}
|
||||
|
||||
char const * default_exception::msg() const {
|
||||
char const * default_exception::what() const {
|
||||
return m_msg.c_str();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue