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

32 lines
684 B
C++

/*
* 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_ */