blob: 9f2f2bc823a1ed2a780b75be40454088b832242b [file] [log] [blame]
#pragma once
#include <exception>
#include <string>
class SensorBuildException : public std::exception
{
public:
explicit SensorBuildException(const std::string& message) : message(message)
{
}
virtual const char* what() const noexcept override
{
return message.c_str();
}
private:
std::string message;
};
class ControllerBuildException : public std::exception
{
public:
explicit ControllerBuildException(const std::string& message) :
message(message)
{
}
virtual const char* what() const noexcept override
{
return message.c_str();
}
private:
std::string message;
};
class ConfigurationException : public std::exception
{
public:
explicit ConfigurationException(const std::string& message) :
message(message)
{
}
virtual const char* what() const noexcept override
{
return message.c_str();
}
private:
std::string message;
};