blob: 1f98d82c3ff587a6400c7a2c41018f8d6e769970 [file] [log] [blame]
#ifndef THRIFT_H
#define THRIFT_H
#include <netinet/in.h>
#include <inttypes.h>
#include <string>
#include <map>
#include <list>
#include <set>
#include <exception>
namespace facebook {namespace thrift {
class Exception : public std::exception {
private:
const std::string _message;
public:
Exception(const std::string message) : _message(message) {}
~Exception() throw () {}
const char* what() {return _message.c_str();}
};
}} // facebook::thrift
#endif