Mark Slee | f5f2be4 | 2006-09-05 21:05:31 +0000 | [diff] [blame^] | 1 | #ifndef _THRIFT_THRIFT_H_ |
| 2 | #define _THRIFT_THRIFT_H_ 1 |
Mark Slee | e854063 | 2006-05-30 09:24:40 +0000 | [diff] [blame] | 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> |
Mark Slee | 4ecbebc | 2006-09-05 00:14:21 +0000 | [diff] [blame] | 10 | #include <vector> |
Marc Slemko | 5b126d6 | 2006-08-11 23:03:42 +0000 | [diff] [blame] | 11 | #include <exception> |
| 12 | |
Mark Slee | cfc0193 | 2006-09-01 22:18:16 +0000 | [diff] [blame] | 13 | namespace facebook { namespace thrift { |
Marc Slemko | 5b126d6 | 2006-08-11 23:03:42 +0000 | [diff] [blame] | 14 | |
| 15 | class Exception : public std::exception { |
| 16 | private: |
| 17 | const std::string _message; |
| 18 | |
| 19 | public: |
| 20 | Exception(const std::string message) : _message(message) {} |
| 21 | ~Exception() throw () {} |
| 22 | const char* what() {return _message.c_str();} |
| 23 | }; |
| 24 | |
| 25 | }} // facebook::thrift |
Mark Slee | e854063 | 2006-05-30 09:24:40 +0000 | [diff] [blame] | 26 | |
Mark Slee | f5f2be4 | 2006-09-05 21:05:31 +0000 | [diff] [blame^] | 27 | #endif // #ifndef _THRIFT_THRIFT_H_ |