fw4spl
ConnectionRefused.hpp
1 /* ***** BEGIN LICENSE BLOCK *****
2  * FW4SPL - Copyright (C) IRCAD, 2009-2018.
3  * Distributed under the terms of the GNU Lesser General Public License (LGPL) as
4  * published by the Free Software Foundation.
5  * ****** END LICENSE BLOCK ****** */
6 
7 #pragma once
8 
9 #include "fwNetworkIO/config.hpp"
10 #include "fwNetworkIO/exceptions/Base.hpp"
11 
12 namespace fwNetworkIO
13 {
14 
15 namespace exceptions
16 {
17 
21 class FWNETWORKIO_CLASS_API ConnectionRefused : public fwNetworkIO::exceptions::Base
22 {
23 public:
27  FWNETWORKIO_API ConnectionRefused(const std::string& message);
28  virtual ~ConnectionRefused() noexcept;
30 };
31 
32 } /* namespace exceptions */
33 } /* namespace fwNetworkIO */
The namespace fwNetworkIO contains the primary methods to access network.
Implements exception for an HTTP connection refused.