• Main Page
  • Related Pages
  • Classes
  • Files
  • File List

src/client/Exceptions.hh

00001 /*
00002  * Copyright Staffan Gimåker 2008-2009.
00003  *
00004  * ---
00005  *
00006  * Distributed under the Boost Software License, Version 1.0.
00007  * (See accompanying file LICENSE_1_0.txt or copy at
00008  * http://www.boost.org/LICENSE_1_0.txt)
00009  */
00010 
00011 #ifndef PEEKABOT_CLIENT_EXCEPTIONS_HH_INCLUDED
00012 #define PEEKABOT_CLIENT_EXCEPTIONS_HH_INCLUDED
00013 
00014 
00015 #include <stdexcept>
00016 
00017 #include "../Visibility.hh"
00018 
00019 
00020 namespace peekabot
00021 {
00022     namespace client
00023     {
00024         class PEEKABOT_API AuthenticationFailed : public std::runtime_error
00025         {
00026         public:
00027             AuthenticationFailed(const std::string &what)
00028                 : std::runtime_error(what) {}
00029         };
00030 
00031         class PEEKABOT_API HostResolveFailed : public std::runtime_error
00032         {
00033         public:
00034             HostResolveFailed(const std::string &what)
00035                 : std::runtime_error(what) {}
00036         };
00037 
00038         class PEEKABOT_API ConnectionRefused : public std::runtime_error
00039         {
00040         public:
00041             ConnectionRefused(const std::string &what)
00042                 : std::runtime_error(what) {}
00043         };
00044 
00045         class PEEKABOT_API AlreadyConnected : public std::runtime_error
00046         {
00047         public:
00048             AlreadyConnected(const std::string &what)
00049                 : std::runtime_error(what) {}
00050         };
00051     }
00052 }
00053 
00054 
00055 #endif // PEEKABOT_CLIENT_EXCEPTIONS_HH_INCLUDED

Generated on Sun Jan 30 2011 for peekabot by  doxygen 1.7.1