]> git.tdb.fi Git - libs/net.git/blobdiff - source/version.cpp
Exception changes
[libs/net.git] / source / version.cpp
index e7ed6aaafb5e301ba20f5b3d1db8df8d47257449..f22b46eafe92523497d25403c3c772fd1fe46676 100644 (file)
@@ -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<unsigned>(match[1].str)<<4 | lexical_cast<unsigned>(match[2].str);
        else
-               throw InvalidParameterValue("Invalid HTTP version");
+               throw invalid_argument("parse_version");
 }
 
 string version_str(Version ver)