CppCMS
cppcms/cppcms_error.h
00001 
00002 //                                                                             
00003 //  Copyright (C) 2008-2012  Artyom Beilis (Tonkikh) <artyomtnk@yahoo.com>     
00004 //                                                                             
00005 //  See accompanying file COPYING.TXT file for licensing details.
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