00001
00002
00003
00004
00005
00006
00008 #ifndef CPPCMS_ERROR_H
00009 #define CPPCMS_ERROR_H
00010
00011 #include <cppcms/defs.h>
00012 #include <string>
00013 #include <booster/backtrace.h>
00014 namespace cppcms {
00015
00021
00022 class CPPCMS_API cppcms_error : public booster::runtime_error {
00023 std::string strerror(int err);
00024 public:
00028 cppcms_error(int err,std::string const &error);
00032 cppcms_error(std::string const &error) : booster::runtime_error(error) {};
00033 };
00034
00035 }
00036 #endif