summaryrefslogtreecommitdiffabout
path: root/include
authorMichael Krelin <hacker@klever.net>2007-03-17 00:15:49 (UTC)
committer Michael Krelin <hacker@klever.net>2007-03-17 00:15:49 (UTC)
commit29f2fd81e0f4e62c54371b90469d64ec5e47bd8a (patch) (unidiff)
tree6c94ade0bd8a3ca92afead27939b586713e5e789 /include
parent88e7e2ac30d181e30a7c4fa36d0029990136efb6 (diff)
downloadsitecing-master.zip
sitecing-master.tar.gz
sitecing-master.tar.bz2
added missing includeHEADpublic/mastermaster
Diffstat (limited to 'include') (more/less context) (show whitespace changes)
-rw-r--r--include/sitecing/exception.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/sitecing/exception.h b/include/sitecing/exception.h
index 857a8e6..ccc7edd 100644
--- a/include/sitecing/exception.h
+++ b/include/sitecing/exception.h
@@ -1,44 +1,47 @@
1#ifndef __SITECING_EXCEPTION_H 1#ifndef __SITECING_EXCEPTION_H
2#define __SITECING_EXCEPTION_H 2#define __SITECING_EXCEPTION_H
3 3
4#include <string>
5
4/** 6/**
5 * @file 7 * @file
6 * @brief The site-C-ing specific exceptions. 8 * @brief The site-C-ing specific exceptions.
7 */ 9 */
8 10
9/** 11/**
10 * @brief The main site-C-ing namespace. 12 * @brief The main site-C-ing namespace.
11 */ 13 */
12namespace sitecing { 14namespace sitecing {
15 using std::string;
13 16
14 // TODO: status specifics 17 // TODO: status specifics
15 18
16 /** 19 /**
17 * The http status to return. 20 * The http status to return.
18 */ 21 */
19 class http_status { 22 class http_status {
20 public: 23 public:
21 /** 24 /**
22 * The status string. 25 * The status string.
23 */ 26 */
24 string status; 27 string status;
25 /** 28 /**
26 * The message to follow the status string. 29 * The message to follow the status string.
27 */ 30 */
28 string message; 31 string message;
29 32
30 /** 33 /**
31 * @param s HTTP status. 34 * @param s HTTP status.
32 * @param m HTTP status message. 35 * @param m HTTP status message.
33 */ 36 */
34 http_status(const string& s,const string& m) 37 http_status(const string& s,const string& m)
35 : status(s), message(m) { } 38 : status(s), message(m) { }
36 virtual ~http_status() throw() { } 39 virtual ~http_status() throw() { }
37 }; 40 };
38 41
39 // per RFC 2616 42 // per RFC 2616
40 43
41 /** 44 /**
42 * Informational. 45 * Informational.
43 */ 46 */
44 class http_status_1xx : public http_status { 47 class http_status_1xx : public http_status {