Dripline-Cpp  v2.10.11
Dripline Implementation in C++
dripline_exceptions.hh
Go to the documentation of this file.
1 /*
2  * dripline_exceptions.hh
3  *
4  * Created on: Aug 14, 2018
5  * Author: N.S. Oblath
6  */
7 
8 #ifndef DRIPLINE_EXCEPTIONS_HH_
9 #define DRIPLINE_EXCEPTIONS_HH_
10 
11 #include "dripline_api.hh"
12 
13 #include "base_exception.hh"
14 
15 
16 namespace dripline
17 {
18 
30  class DRIPLINE_API dripline_error : public scarab::typed_exception< dripline_error >
31  {
32  public:
33  dripline_error() = default;
34  dripline_error( const dripline_error& ) = default;
36  virtual ~dripline_error() noexcept = default;
37 
38  dripline_error& operator=( const dripline_error& ) = default;
39  dripline_error& operator=( dripline_error&& ) = default;
40  };
41 
47  class DRIPLINE_API connection_error : public scarab::typed_exception< connection_error >
48  {
49  public:
50  connection_error() = default;
51  connection_error( const connection_error& ) = default;
53  virtual ~connection_error() noexcept = default;
54 
55  connection_error& operator=( const connection_error& ) = default;
56  connection_error& operator=( connection_error&& ) = default;
57  };
58 
59 }
60 
61 #endif /* DRIPLINE_EXCEPTIONS_HH_ */
Error indicating a problem with the connection to the broker.
connection_error(connection_error &&)=default
virtual ~connection_error() noexcept=default
connection_error(const connection_error &)=default
Dripline-specific errors.
dripline_error(dripline_error &&)=default
dripline_error(const dripline_error &)=default
virtual ~dripline_error() noexcept=default
#define DRIPLINE_API
Definition: dripline_api.hh:34
Definition: agent.hh:18