blob: 410d20ebd0fcb414c4fdd7607a2b2260b0adcbcd [file] [log] [blame]
Mark Sleee8540632006-05-30 09:24:40 +00001#ifndef THRIFT_H
2#define THRIFT_H
3
Mark Slee8d7e1f62006-06-07 06:48:56 +00004#include <netinet/in.h>
5#include <inttypes.h>
Mark Sleee8540632006-05-30 09:24:40 +00006#include <string>
7#include <map>
8#include <list>
9#include <set>
Mark Slee4ecbebc2006-09-05 00:14:21 +000010#include <vector>
Marc Slemko5b126d62006-08-11 23:03:42 +000011#include <exception>
12
Mark Sleecfc01932006-09-01 22:18:16 +000013namespace facebook { namespace thrift {
Marc Slemko5b126d62006-08-11 23:03:42 +000014
15class Exception : public std::exception {
16private:
17 const std::string _message;
18
19public:
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 Sleee8540632006-05-30 09:24:40 +000026
27#endif