Remove dynamic exceptions
[anna.git] / source / http / Response.cpp
index 1029dc5..fecdf61 100644 (file)
@@ -14,7 +14,7 @@ using namespace std;
 using namespace anna;
 
 void http::Response::setStatusCode(const int statusCode)
-throw() {
+{
   static struct { int statusCode; const char* reasonPhrase; } reasons [] = {
     100, "Continue",
     101, "Switching Protocols",
@@ -78,7 +78,7 @@ throw() {
 }
 
 string http::Response::codeStartLine() const
-throw(RuntimeException) {
+noexcept(false) {
   string result(getVersion());
   result += ' ';
   result += functions::asString(a_statusCode);
@@ -87,7 +87,7 @@ throw(RuntimeException) {
 }
 
 string http::Response::asString() const
-throw() {
+{
   string result("http::Response { Version: ");
   result += getVersion();
   result += " | StatusCode: ";