blob: 1f98d82c3ff587a6400c7a2c41018f8d6e769970 [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
12namespace facebook {namespace thrift {
13
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