X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fresponse.cpp;fp=source%2Fresponse.cpp;h=ede249b7e11afa467e5423f4c4a54faa091fc59c;hb=7b84e8b9d560e868f7fafbc18a2770579ee1b4b3;hp=a5f95825c1c65fc8170552e4046083fea12db828;hpb=1c965907682f4714db7b952915cf5b6bf9b7f4c1;p=libs%2Fnet.git diff --git a/source/response.cpp b/source/response.cpp index a5f9582..ede249b 100644 --- a/source/response.cpp +++ b/source/response.cpp @@ -26,7 +26,7 @@ Response Response::parse(const string &str) unsigned lf = str.find('\n'); vector parts = split(str.substr(0, lf), ' ', 2); if(parts.size()<2) - throw InvalidParameterValue("Invalid response"); + throw invalid_argument("Response::parse"); result.http_version = parse_version(parts[0]); result.status = static_cast(lexical_cast(parts[1]));