mirror of
https://github.com/Z3Prover/z3
synced 2025-05-06 15:25:46 +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
|
@ -306,7 +306,7 @@ namespace api {
|
|||
set_error_code(Z3_MEMOUT_FAIL, nullptr);
|
||||
break;
|
||||
case ERR_PARSER:
|
||||
set_error_code(Z3_PARSER_ERROR, ex.msg());
|
||||
set_error_code(Z3_PARSER_ERROR, ex.what());
|
||||
break;
|
||||
case ERR_INI_FILE:
|
||||
set_error_code(Z3_INVALID_ARG, nullptr);
|
||||
|
@ -320,7 +320,7 @@ namespace api {
|
|||
}
|
||||
}
|
||||
else {
|
||||
set_error_code(Z3_EXCEPTION, ex.msg());
|
||||
set_error_code(Z3_EXCEPTION, ex.what());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue