mirror of
https://github.com/Z3Prover/z3
synced 2025-05-15 03:34:44 +00:00
Reorganizing code. Added script for generating VS project files
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
parent
2c464d413d
commit
8a6997960a
68 changed files with 167 additions and 170 deletions
49
src/util/z3_exception.h
Normal file
49
src/util/z3_exception.h
Normal file
|
@ -0,0 +1,49 @@
|
|||
/*++
|
||||
Copyright (c) 2011 Microsoft Corporation
|
||||
|
||||
Module Name:
|
||||
|
||||
z3_exception.h
|
||||
|
||||
Abstract:
|
||||
|
||||
Generic Z3 exception
|
||||
|
||||
Author:
|
||||
|
||||
Leonardo (leonardo) 2011-04-28
|
||||
|
||||
Notes:
|
||||
|
||||
--*/
|
||||
#ifndef _Z3_EXCEPTION_H_
|
||||
#define _Z3_EXCEPTION_H_
|
||||
|
||||
#include<string>
|
||||
|
||||
class z3_exception {
|
||||
public:
|
||||
virtual ~z3_exception() {}
|
||||
virtual char const * msg() const = 0;
|
||||
virtual unsigned error_code() const;
|
||||
bool has_error_code() const;
|
||||
};
|
||||
|
||||
class z3_error : public z3_exception {
|
||||
unsigned m_error_code;
|
||||
public:
|
||||
z3_error(unsigned error_code);
|
||||
virtual char const * msg() const;
|
||||
virtual unsigned error_code() const;
|
||||
};
|
||||
|
||||
class default_exception : public z3_exception {
|
||||
std::string m_msg;
|
||||
public:
|
||||
default_exception(std::string const& msg);
|
||||
default_exception(char const* msg, ...);
|
||||
virtual ~default_exception() {}
|
||||
virtual char const * msg() const;
|
||||
};
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue