source: translator/Common/CompilerError.h @ 4bf5298

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 4bf5298 was 51b7345, checked in by Peter A. Buhr <pabuhr@…>, 10 years ago

initial commit

  • Property mode set to 100644
File size: 472 bytes
Line 
1#ifndef COMPILER_ERROR_H
2#define COMPILER_ERROR_H
3
4#include <string>
5//#include "../config.h"
6
7class CompilerError : public std::exception
8{
9public:
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
17private:
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.