blob: 69d63bee410573825021eb14233a733e5b7fa884 [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};