MotorControlModuleSDFM_TMS3.../Projects/EFC_Communication/UMLibrary/application/schematic/RangeException.hh

32 lines
688 B
C++
Raw Normal View History

2024-06-07 11:12:56 +03:00
/*
* 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_ */