Mark Slee | e854063 | 2006-05-30 09:24:40 +0000 | [diff] [blame] | 1 | #ifndef THRIFT_H |
| 2 | #define THRIFT_H |
| 3 | |
Mark Slee | 8d7e1f6 | 2006-06-07 06:48:56 +0000 | [diff] [blame] | 4 | #include <netinet/in.h> |
| 5 | #include <inttypes.h> |
Mark Slee | e854063 | 2006-05-30 09:24:40 +0000 | [diff] [blame] | 6 | #include <string> |
| 7 | #include <map> |
| 8 | #include <list> |
| 9 | #include <set> |
Marc Slemko | 5b126d6 | 2006-08-11 23:03:42 +0000 | [diff] [blame^] | 10 | #include <exception> |
| 11 | |
| 12 | namespace facebook {namespace thrift { |
| 13 | |
| 14 | class Exception : public std::exception { |
| 15 | private: |
| 16 | const std::string _message; |
| 17 | |
| 18 | public: |
| 19 | Exception(const std::string message) : _message(message) {} |
| 20 | ~Exception() throw () {} |
| 21 | const char* what() {return _message.c_str();} |
| 22 | }; |
| 23 | |
| 24 | }} // facebook::thrift |
Mark Slee | e854063 | 2006-05-30 09:24:40 +0000 | [diff] [blame] | 25 | |
| 26 | #endif |