Menu

[r968]: / framework / branches / refactoring / cppcms_error.h  Maximize  Restore  History

Download this file

31 lines (25 with data), 662 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#ifndef CPPCMS_ERROR_H
#define CPPCMS_ERROR_H
#include "defs.h"
#include <string>
#include <stdexcept>
namespace cppcms {
///
/// \brief Exception thrown by CppCMS framework.
///
/// Every exception that is thrown from CppCMS modules derived from this exception.
///
class CPPCMS_API cppcms_error : public std::runtime_error {
std::string strerror(int err);
public:
///
/// Create an object with error code err (errno) and a message \a error
///
cppcms_error(int err,std::string const &error);
///
/// Create an object with message \a error
///
cppcms_error(std::string const &error) : std::runtime_error(error) {};
};
}
#endif /* _HTTP_ERROR_H */
MongoDB Logo MongoDB