blob: cc1bd0798a1cc081fd2479c4ec083ee29ea750eb [file] [log] [blame]
Patrick Venturec404b3e2018-10-30 14:17:49 -07001#pragma once
2
3#include <exception>
4#include <string>
5
6class SensorBuildException : public std::exception
7{
8 public:
9 SensorBuildException(const std::string& message) : message(message)
10 {
11 }
12
13 virtual const char* what() const noexcept override
14 {
15 return message.c_str();
16 }
17
18 private:
19 std::string message;
20};
James Feist734f9532018-11-15 12:13:18 -080021
22class ControllerBuildException : public std::exception
23{
24 public:
25 ControllerBuildException(const std::string& message) : message(message)
26 {
27 }
28
29 virtual const char* what() const noexcept override
30 {
31 return message.c_str();
32 }
33
34 private:
35 std::string message;
36};
Patrick Venture81cef912019-02-11 11:57:25 -080037
38class ConfigurationException : public std::exception
39{
40 public:
41 ConfigurationException(const std::string& message) : message(message)
42 {
43 }
44
45 virtual const char* what() const noexcept override
46 {
47 return message.c_str();
48 }
49
50 private:
51 std::string message;
52};