MotorControlModuleSDFM_TMS3.../Projects/EFC_Communication/UMLibrary/application/schematic/RangeException.hh
2024-06-07 11:12:56 +03:00

32 lines
688 B
C++
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*
* RangeException.hh
*
* Created on: 14 мая 2020 г.
* Author: LeonidTitov
*/
#ifndef UMLIBRARY_APPLICATION_SCHEMATIC_RANGEEXCEPTION_HH_
#define UMLIBRARY_APPLICATION_SCHEMATIC_RANGEEXCEPTION_HH_
#include <exception>
#include "../../configuration/Environment.hh"
namespace application { namespace schematic {
struct RangeException : public std::exception {
configuration::Environment::SettingId config_id;
RangeException( configuration::Environment::SettingId config_id ) noexcept :
config_id(config_id) {}
const char * what() const noexcept { return "Range invalid"; }
};
}
}
#endif /* UMLIBRARY_APPLICATION_SCHEMATIC_RANGEEXCEPTION_HH_ */