32 lines
688 B
C++
32 lines
688 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_ */
|