ADTaaron-thesisarm-ehast-experimentalcleanup-dtorsctordeferred_resndemanglerenumforall-pointer-decaygc_noraiijacob/cs343-translationjenkins-sandboxmemorynew-astnew-ast-unique-exprnew-envno_listpersistent-indexerpthread-emulationqualifiedEnumresolv-newstringwith_gc
Last change
on this file since 8c17ab0 was
51b7345,
checked in by Peter A. Buhr <pabuhr@…>, 10 years ago
|
initial commit
|
-
Property mode set to
100644
|
File size:
472 bytes
|
Rev | Line | |
---|
[51b7345] | 1 | #ifndef COMPILER_ERROR_H |
---|
| 2 | #define COMPILER_ERROR_H |
---|
| 3 | |
---|
| 4 | #include <string> |
---|
| 5 | //#include "../config.h" |
---|
| 6 | |
---|
| 7 | class CompilerError : public std::exception |
---|
| 8 | { |
---|
| 9 | public: |
---|
| 10 | CompilerError(); |
---|
| 11 | CompilerError( std::string what ) : what( what ) {} |
---|
| 12 | ~CompilerError() throw () {} |
---|
| 13 | |
---|
| 14 | std::string get_what() const { return what; } |
---|
| 15 | void set_what( std::string newValue ) { what = newValue; } |
---|
| 16 | |
---|
| 17 | private: |
---|
| 18 | std::string what; |
---|
| 19 | }; |
---|
| 20 | |
---|
| 21 | #endif /* COMPILER_ERROR_H */ |
---|
| 22 | |
---|
| 23 | /* |
---|
| 24 | Local Variables: |
---|
| 25 | mode: c++ |
---|
| 26 | End: |
---|
| 27 | */ |
---|
Note: See
TracBrowser
for help on using the repository browser.