A variant was read with the wrong alternative, or while valueless.
More...
#include <StormByte/safe/exception.hxx>
|
| | Exception () noexcept |
| | Construct without allocating message storage.
|
| | Exception () noexcept |
| | Construct without allocating message storage.
|
| | Exception (Path path, std::string_view message) |
| | Stores StormByte.path: message, or StormByte: message when path is empty.
|
| | Exception (Path path, Safe::String &&message) |
| | Stores StormByte.path: message, taking the body.
|
template<typename... Args>
requires (sizeof...(Args) >= 1) |
| | Exception (Path path, std::string_view pattern, Args &&... args) |
| | Stores StormByte.path: message after replacing literal {}.
|
A variant was read with the wrong alternative, or while valueless.
The message is the body only. The path Safe is applied by Exception.
◆ BadVariantAccess() [1/4]
| StormByte::Safe::BadVariantAccess::BadVariantAccess |
( |
std::string_view | message | ) |
|
|
explicit |
Copy a body into StormByte.Safe: message.
- Parameters
-
| message | Body. Not a path and not a format string. |
◆ BadVariantAccess() [2/4]
template<typename... Args>
requires (sizeof...(Args) >= 1)
| StormByte::Safe::BadVariantAccess::BadVariantAccess |
( |
std::string_view | pattern, |
|
|
Args &&... | args ) |
|
inline |
Replace literal {} in pattern.
- Template Parameters
-
| Args | Views, numbers, or types that convert to std::string. A number uses std::to_string. |
- Parameters
-
| pattern | Body with literal {} tokens. |
| args | Replacements. One per token, in order. |
◆ BadVariantAccess() [3/4]
| StormByte::Safe::BadVariantAccess::BadVariantAccess |
( |
const BadVariantAccess & | other | ) |
|
Copy constructor.
Defined in the Base DLL.
- Parameters
-
◆ BadVariantAccess() [4/4]
| StormByte::Safe::BadVariantAccess::BadVariantAccess |
( |
BadVariantAccess && | other | ) |
|
|
noexcept |
Move constructor.
Defined in the Base DLL.
- Parameters
-
◆ ~BadVariantAccess()
| StormByte::Safe::BadVariantAccess::~BadVariantAccess |
( |
| ) |
|
|
overridenoexcept |
Destructor.
Defined in the Base DLL so catch matches across modules.
◆ operator=() [1/2]
Move assignment.
Defined in the Base DLL.
- Parameters
-
- Returns
- This exception.
◆ operator=() [2/2]
Copy assignment.
Defined in the Base DLL.
- Parameters
-
- Returns
- This exception.
The documentation for this class was generated from the following file: