summaryrefslogtreecommitdiffabout
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) (side-by-side diff)
tree6c94ade0bd8a3ca92afead27939b586713e5e789
parent88e7e2ac30d181e30a7c4fa36d0029990136efb6 (diff)
downloadsitecing-29f2fd81e0f4e62c54371b90469d64ec5e47bd8a.zip
sitecing-29f2fd81e0f4e62c54371b90469d64ec5e47bd8a.tar.gz
sitecing-29f2fd81e0f4e62c54371b90469d64ec5e47bd8a.tar.bz2
added missing includeHEADpublic/mastermaster
Diffstat (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,60 +1,63 @@
#ifndef __SITECING_EXCEPTION_H
#define __SITECING_EXCEPTION_H
+#include <string>
+
/**
* @file
* @brief The site-C-ing specific exceptions.
*/
/**
* @brief The main site-C-ing namespace.
*/
namespace sitecing {
+ using std::string;
// TODO: status specifics
/**
* The http status to return.
*/
class http_status {
public:
/**
* The status string.
*/
string status;
/**
* The message to follow the status string.
*/
string message;
/**
* @param s HTTP status.
* @param m HTTP status message.
*/
http_status(const string& s,const string& m)
: status(s), message(m) { }
virtual ~http_status() throw() { }
};
// per RFC 2616
/**
* Informational.
*/
class http_status_1xx : public http_status {
public:
/**
* @param s HTTP status
* @param m HTTP status message
*/
explicit http_status_1xx(const string &s,const string& m)
: http_status(s,m) { }
};
/**
* Continue.
*/
class http_status_100 : public http_status_1xx {
public:
/**
* @param m HTTP status message
*/