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