X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fversion.cpp;h=f22b46eafe92523497d25403c3c772fd1fe46676;hb=c8df43e7794dc82d5604dfa612e464bbc5ca3cdd;hp=76159bae8cde30d01473036671fe596dcfd909f9;hpb=df006bfbbe8e8b49a52296f42894d4a452ed4c90;p=libs%2Fnet.git diff --git a/source/version.cpp b/source/version.cpp index 76159ba..f22b46e 100644 --- a/source/version.cpp +++ b/source/version.cpp @@ -1,10 +1,3 @@ -/* $Id$ - -This file is part of libmsphttp -Copyright © 2008 Mikkosoft Productions, Mikko Rasa -Distributed under the LGPL -*/ - #include #include #include @@ -20,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)