Root exception for Database.
More...
#include <StormByte/database/exception.hxx>
Root exception for Database.
what() is StormByte.Database: message.
This type applies the Database 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/6]
template<typename... Args>
requires (sizeof...(Args) >= 1)
| StormByte::Database::Exception::Exception |
( |
std::string_view | pattern, |
|
|
Args &&... | args ) |
|
inline |
Replace literal {} under StormByte.Database.
- Template Parameters
-
| Args | Views, numbers, or types that convert to std::string. A number uses std::to_string. |
- Parameters
-
| pattern | Body with literal {} tokens. Not a std::format string. |
| args | Replacements. One per token, in order. |
◆ Exception() [2/6]
| StormByte::Database::Exception::Exception |
( |
std::string_view | message | ) |
|
|
explicit |
◆ Exception() [3/6]
| StormByte::Database::Exception::Exception |
( |
Path | path, |
|
|
std::string_view | message ) |
Plain message under an additional Database path.
- Parameters
-
◆ Exception() [4/6]
template<typename... Args>
requires (sizeof...(Args) >= 1)
| StormByte::Database::Exception::Exception |
( |
Path | path, |
|
|
std::string_view | pattern, |
|
|
Args &&... | args ) |
|
inline |
Replace literal {} under an additional Database path.
- Template Parameters
-
| Args | Views, numbers, or types that convert to std::string. A number uses std::to_string. |
- Parameters
-
| path | Additional segments nested below StormByte.Database. |
| pattern | Body with literal {} tokens. Not a std::format string. |
| args | Replacements. One per token, in order. |
◆ Exception() [5/6]
| StormByte::Database::Exception::Exception |
( |
const Exception & | other | ) |
|
|
default |
Copy constructor.
- Parameters
-
◆ Exception() [6/6]
| StormByte::Database::Exception::Exception |
( |
Exception && | other | ) |
|
|
defaultnoexcept |
Move constructor.
- Parameters
-
◆ ~Exception()
| StormByte::Database::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
- This exception.
◆ operator=() [2/2]
Move assignment operator.
- Parameters
-
- Returns
- This exception.
◆ Segment()
| StormByte::Safe::String StormByte::Database::Exception::Segment |
( |
std::string_view | prefix, |
|
|
std::string_view | component ) |
|
inlinestaticprotected |
Join a fixed prefix and a dynamic segment.
- Parameters
-
| prefix | Fixed text, including a trailing dot when the segment follows. |
| component | Dynamic segment. |
- Returns
- Owned text. The view it converts to lives for the calling expression.
The documentation for this class was generated from the following file: