3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-06-27 00:18:45 +00:00

use std::exception as base class to z3_exception

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2024-11-04 11:08:15 -08:00
parent 1957b4d991
commit 92065462b4
60 changed files with 109 additions and 111 deletions

View file

@ -129,15 +129,15 @@ public:
static bool field() { return true; }
class exception : public z3_exception {
char const * msg() const override { return "multi-precision fixed point (mpfx) exception"; }
char const * what() const override { return "multi-precision fixed point (mpfx) exception"; }
};
class overflow_exception : public exception {
char const * msg() const override { return "multi-precision fixed point (mpfx) overflow"; }
char const * what() const override { return "multi-precision fixed point (mpfx) overflow"; }
};
class div0_exception : public exception {
char const * msg() const override { return "multi-precision fixed point (mpfx) division by zero"; }
char const * what() const override { return "multi-precision fixed point (mpfx) division by zero"; }
};
mpfx_manager(unsigned int_sz = 2, unsigned frac_sz = 1, unsigned initial_capacity = 1024);