OSSIA
Open Scenario System for Interactive Application
exception.hpp
1 #pragma once
2 #include <ossia/detail/config.hpp>
3 
4 #include <exception>
5 #include <string>
6 
7 namespace ossia
8 {
9 
10 class ossiaException : public std::exception
11 {
12 protected:
13  const std::string m_message;
14  ossiaException(
15  int lineno, const std::string& filename, const std::string& details,
16  const std::string& name);
17 
18 public:
19  ossiaException(
20  int lineno, const std::string& filename, const std::string& details = {});
21  const char* what() const noexcept override;
22 };
23 
24 class ossiaException_InvalidJSON : public ossiaException
25 {
26 public:
27  ossiaException_InvalidJSON(
28  int line, const std::string& filename, const std::string& details = {});
29 };
30 
31 class ossiaException_InvalidXML : public ossiaException
32 {
33 public:
34  ossiaException_InvalidXML(
35  int line, const std::string& filename, const std::string& details = {});
36 };
37 
38 class ossiaException_InvalidAddress : public ossiaException
39 {
40 public:
41  ossiaException_InvalidAddress(
42  int line, const std::string& filename, const std::string& details = {});
43 };
44 }
Definition: git_info.h:7