-/* $Id$
-
-This file is part of libmsphttp
-Copyright © 2008 Mikkosoft Productions, Mikko Rasa
-Distributed under the LGPL
-*/
-
#include <msp/strings/formatter.h>
#include <msp/strings/lexicalcast.h>
#include <msp/strings/regex.h>
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)