blob: 92143cc91ee9661e5968c7abdb224acac0643280 [file] [log] [blame]
Mark Sleef5f2be42006-09-05 21:05:31 +00001#ifndef _THRIFT_THRIFT_H_
2#define _THRIFT_THRIFT_H_ 1
Mark Sleee8540632006-05-30 09:24:40 +00003
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
Aditya Agarwald622e962006-10-11 02:42:49 +000013#include "TLogging.h"
14
Mark Sleecfc01932006-09-01 22:18:16 +000015namespace facebook { namespace thrift {
Marc Slemko5b126d62006-08-11 23:03:42 +000016
17class Exception : public std::exception {
Marc Slemko5b126d62006-08-11 23:03:42 +000018public:
Mark Slee2f6404d2006-10-10 01:37:40 +000019 Exception(const std::string message) :
20 message_(message) {}
21
Marc Slemko5b126d62006-08-11 23:03:42 +000022 ~Exception() throw () {}
Mark Slee2f6404d2006-10-10 01:37:40 +000023
24 const char* what() {
25 return message_.c_str();
26 }
27
28private:
29 const std::string message_;
30
Marc Slemko5b126d62006-08-11 23:03:42 +000031};
32
33}} // facebook::thrift
Mark Sleee8540632006-05-30 09:24:40 +000034
Mark Sleef5f2be42006-09-05 21:05:31 +000035#endif // #ifndef _THRIFT_THRIFT_H_