Changeset 01aeade for translator/Common/UnimplementedError.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/UnimplementedError.h
r51587aa r01aeade 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // XXX.cc--7 // UnimplementedError.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:23:08 2015 13 // Update Count : 1 14 14 // 15 /*16 * This file is part of the Cforall project17 *18 * $Id: UnimplementedError.h,v 1.1 2002/09/02 20:31:53 rcbilson Exp $19 *20 */21 15 22 #ifndef COMMON_UNIMPLEMENTEDERROR_H23 #define COMMON_UNIMPLEMENTEDERROR_H16 #ifndef _UNIMPLEMENTEDERROR_H 17 #define _UNIMPLEMENTEDERROR_H 24 18 25 19 #include <string> 26 20 27 class UnimplementedError : public std::exception 28 { 29 public: 30 UnimplementedError(); 31 UnimplementedError( std::string what ) : what( what ) {} 32 ~UnimplementedError() throw () {} 21 class UnimplementedError : public std::exception { 22 public: 23 UnimplementedError(); 24 UnimplementedError( std::string what ) : what( what ) {} 25 ~UnimplementedError() throw () {} 33 26 34 std::string get_what() const { return what; } 35 void set_what( std::string newValue ) { what = newValue; } 36 37 private: 38 std::string what; 27 std::string get_what() const { return what; } 28 void set_what( std::string newValue ) { what = newValue; } 29 private: 30 std::string what; 39 31 }; 40 32 41 #endif /* #ifndef COMMON_UNIMPLEMENTEDERROR_H */ 33 #endif // _UNIMPLEMENTEDERROR_H 34 42 35 // Local Variables: // 43 36 // tab-width: 4 //
Note: See TracChangeset
for help on using the changeset viewer.