X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fversion.cpp;fp=source%2Fversion.cpp;h=f22b46eafe92523497d25403c3c772fd1fe46676;hb=7b84e8b9d560e868f7fafbc18a2770579ee1b4b3;hp=e7ed6aaafb5e301ba20f5b3d1db8df8d47257449;hpb=1c965907682f4714db7b952915cf5b6bf9b7f4c1;p=libs%2Fnet.git diff --git a/source/version.cpp b/source/version.cpp index e7ed6aa..f22b46e 100644 --- a/source/version.cpp +++ b/source/version.cpp @@ -13,7 +13,7 @@ Version parse_version(const std::string &ver) if(RegMatch match = Regex("^HTTP/([0-9]+).([0-9]+)$").match(ver)) return lexical_cast(match[1].str)<<4 | lexical_cast(match[2].str); else - throw InvalidParameterValue("Invalid HTTP version"); + throw invalid_argument("parse_version"); } string version_str(Version ver)