]> git.tdb.fi Git - libs/net.git/blobdiff - source/http/client.cpp
Adjust exception classes and messages
[libs/net.git] / source / http / client.cpp
index e09057684957cac17acdeb17adeaf272efdc1952..705f4cb7bbd0a7e09dcdbcde3dc979e9bf0cae86 100644 (file)
@@ -1,3 +1,4 @@
+#include <msp/core/except.h>
 #include <msp/core/refptr.h>
 #include <msp/net/resolve.h>
 #include <msp/time/timedelta.h>
@@ -53,7 +54,7 @@ void Client::use_resolver(Net::Resolver *r)
 void Client::start_request(const Request &r)
 {
        if(request)
-               throw client_busy();
+               throw invalid_state("already processing a request");
 
        delete sock;
        sock = 0;