Root exception for Config.
More...
#include <StormByte/config/exception.hxx>
Root exception for Config.
what() is StormByte.Config: message.
This type applies the Config segment. A further segment is an Path. The body does not include the path. Literal {} are replaced by StormByte::Safe::String::ReplaceToken. This does not call std::format. The destructor is defined in this module.
◆ Exception() [1/5]
template<typename... Args>
requires (sizeof...(Args) >= 1)
| StormByte::Config::Exception::Exception |
( |
std::string_view | pattern, |
|
|
Args &&... | args ) |
|
inline |
Replace literal {} under StormByte.Config.
- Template Parameters
-
| Args | Views, or numbers. A number is converted with std::to_string. |
- Parameters
-
| pattern | Body with literal {} tokens. Not a std::format string. |
| args | Replacements. One per token, in order. |
◆ Exception() [2/5]
| StormByte::Config::Exception::Exception |
( |
std::string_view | message | ) |
|
|
explicit |
◆ Exception() [3/5]
| StormByte::Config::Exception::Exception |
( |
Path | path, |
|
|
std::string_view | message ) |
Plain message under an additional Config path.
- Parameters
-
◆ Exception() [4/5]
| StormByte::Config::Exception::Exception |
( |
const Exception & | other | ) |
|
|
default |
Copy constructor.
- Parameters
-
◆ Exception() [5/5]
| StormByte::Config::Exception::Exception |
( |
Exception && | other | ) |
|
|
defaultnoexcept |
Move constructor.
- Parameters
-
◆ ~Exception()
| StormByte::Config::Exception::~Exception |
( |
| ) |
|
|
overridevirtualnoexcept |
Destructor.
Defined in this module so catch matches across a DLL.
Reimplemented from StormByte::Exception.
◆ operator=() [1/2]
Copy assignment operator.
- Parameters
-
- Returns
- Reference to this Exception.
◆ operator=() [2/2]
Move assignment operator.
- Parameters
-
- Returns
- Reference to this Exception.
The documentation for this class was generated from the following file: