lintel 0.2.0
Loading...
Searching...
No Matches
ConfigShmSegmentNotFound.h
Go to the documentation of this file.
1#pragma once
2
3#include <exception>
4#include <string>
5
6namespace lintel {
8class ConfigShmSegmentNotFound : public std::exception
9{
10private:
11 std::string name;
12 std::string message;
13
14public:
16 explicit ConfigShmSegmentNotFound(const std::string_view &name)
17 : name(name), message(this->name + ": segment not defined in configuration")
18 {}
19
21 [[nodiscard]] const std::string &getName() const { return name; }
22
23 [[nodiscard]] const char *what() const noexcept override { return message.c_str(); };
24};
25}// namespace lintel
Definition ConfigShmSegmentNotFound.h:9
ConfigShmSegmentNotFound(const std::string_view &name)
Definition ConfigShmSegmentNotFound.h:16
const std::string & getName() const
Definition ConfigShmSegmentNotFound.h:21
const char * what() const noexcept override
Definition ConfigShmSegmentNotFound.h:23
Definition BaseFeature.h:6
constexpr std::string_view type_name()
Definition TypeName.h:9