Changeset 01aeade for translator/Common/CompilerError.h
- Timestamp:
- May 19, 2015, 7:57:09 AM (9 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, ctor, deferred_resn, demangler, enum, forall-pointer-decay, gc_noraii, jacob/cs343-translation, jenkins-sandbox, master, memory, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, string, with_gc
- Children:
- a08ba92
- Parents:
- 51587aa
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
translator/Common/CompilerError.h
r51587aa r01aeade 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // XXX.cc--7 // CompilerError.h -- 8 8 // 9 9 // Author : Richard C. Bilson 10 10 // Created On : Mon May 18 07:44:20 2015 11 // Last Modified By : 12 // Last Modified On : 13 // Update Count : 011 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Tue May 19 07:20:37 2015 13 // Update Count : 2 14 14 // 15 15 16 #ifndef COMPILER_ERROR_H 16 17 #define COMPILER_ERROR_H … … 19 20 //#include "../config.h" 20 21 21 class CompilerError : public std::exception 22 { 23 public: 24 CompilerError(); 25 CompilerError( std::string what ) : what( what ) {} 26 ~CompilerError() throw () {} 22 class CompilerError : public std::exception { 23 public: 24 CompilerError(); 25 CompilerError( std::string what ) : what( what ) {} 26 ~CompilerError() throw () {} 27 27 28 std::string get_what() const { return what; } 29 void set_what( std::string newValue ) { what = newValue; } 30 31 private: 32 std::string what; 28 std::string get_what() const { return what; } 29 void set_what( std::string newValue ) { what = newValue; } 30 private: 31 std::string what; 33 32 }; 34 33 35 #endif / * COMPILER_ERROR_H */34 #endif // COMPILER_ERROR_H 36 35 37 /*38 Local Variables:39 mode: c++40 End:41 */42 36 // Local Variables: // 43 37 // tab-width: 4 //
Note: See TracChangeset
for help on using the changeset viewer.