libiqxmlrpc  0.12.4
 All Classes Namespaces Files Functions Typedefs Enumerations
net_except.h
1 // Libiqxmlrpc - an object-oriented XML-RPC solution.
2 // Copyright (C) 2011 Anton Dedov
3 
4 #ifndef _libiqnet_net_except_h_
5 #define _libiqnet_net_except_h_
6 
7 #include "api_export.h"
8 
9 #include <stdexcept>
10 #include <string>
11 
12 namespace iqnet
13 {
14 
15 #ifdef _MSC_VER
16 #pragma warning(push)
17 #pragma warning(disable: 4275)
18 #endif
19 
21 class LIBIQXMLRPC_API network_error: public std::runtime_error {
22 public:
23  network_error( const std::string& msg, bool use_errno = true, int myerrno = 0 );
24 };
25 
26 #ifdef _MSC_VER
27 #pragma warning(pop)
28 #endif
29 
30 } // namespace iqnet
31 
32 #endif
Exception class to wrap a network's subsystem errors.
Definition: net_except.h:21