blob: 9254b5622428909c42ee97c7020697a7bb5aba72 [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>
Marc Slemko5b126d62006-08-11 23:03:42 +000010#include <exception>
11
Mark Sleecfc01932006-09-01 22:18:16 +000012namespace facebook { namespace thrift {
Marc Slemko5b126d62006-08-11 23:03:42 +000013
14class Exception : public std::exception {
15private:
16 const std::string _message;
17
18public:
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 Sleee8540632006-05-30 09:24:40 +000025
26#endif