OSSIA
Open Scenario System for Interactive Application
network/exceptions.hpp
1 #pragma once
2 #include <ossia/detail/config.hpp>
3 
4 #include <stdexcept>
5 #include <string>
6 
7 namespace ossia
8 {
9 
16 struct OSSIA_EXPORT parse_error final : public std::runtime_error
17 {
18  parse_error(std::string e)
19  : std::runtime_error(std::move(e))
20  {
21  }
22  ~parse_error() override;
23 };
24 
30 struct OSSIA_EXPORT connection_error final : public std::runtime_error
31 {
32  connection_error(std::string e)
33  : std::runtime_error(std::move(e))
34  {
35  }
36  ~connection_error() override;
37 };
38 
47 struct OSSIA_EXPORT invalid_node_error final : public std::logic_error
48 {
49  invalid_node_error(std::string e)
50  : std::logic_error(std::move(e))
51  {
52  }
53  ~invalid_node_error() override;
54 };
55 
59 struct OSSIA_EXPORT node_not_found_error final : public std::runtime_error
60 {
61  node_not_found_error(std::string e)
62  : std::runtime_error(std::move(e))
63  {
64  }
65  ~node_not_found_error() override;
66 };
67 
71 struct OSSIA_EXPORT bad_request_error final : public std::runtime_error
72 {
73  bad_request_error(std::string e)
74  : std::runtime_error(std::move(e))
75  {
76  }
77  ~bad_request_error() override;
78 };
79 
86 struct OSSIA_EXPORT invalid_value_type_error : public std::logic_error
87 {
88  invalid_value_type_error(const char* e)
89  : std::logic_error(e)
90  {
91  }
92  ~invalid_value_type_error() override;
93 };
94 }
Definition: git_info.h:7
Used when a bad network request is done on a local server.
Definition: network/exceptions.hpp:72
The connection_error class.
Definition: network/exceptions.hpp:31
The invalid_node_error class.
Definition: network/exceptions.hpp:48
The invalid_value_type_error class.
Definition: network/exceptions.hpp:87
Used when a requested node could not be found.
Definition: network/exceptions.hpp:60
The parse_error class.
Definition: network/exceptions.hpp:17