An index or range is out of bounds.
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 {}.
|
An index or range is out of bounds.
The text is fixed. A Size is written into it. No size means there is no numeric bound, as with a missing map key. The path Safe is applied by Exception.
◆ OutOfBoundsError() [1/4]
| StormByte::Safe::OutOfBoundsError::OutOfBoundsError |
( |
const Size & | index | ) |
|
|
explicit |
Report index.
Text is index <index> is out of range.
- Parameters
-
| index | Bound that was outside the range. |
◆ OutOfBoundsError() [2/4]
| StormByte::Safe::OutOfBoundsError::OutOfBoundsError |
( |
| ) |
|
Report an out-of-range access that has no numeric bound.
Text is index is out of range.
◆ OutOfBoundsError() [3/4]
| StormByte::Safe::OutOfBoundsError::OutOfBoundsError |
( |
const OutOfBoundsError & | other | ) |
|
Copy constructor.
Defined in the Base DLL.
- Parameters
-
◆ OutOfBoundsError() [4/4]
| StormByte::Safe::OutOfBoundsError::OutOfBoundsError |
( |
OutOfBoundsError && | other | ) |
|
|
noexcept |
Move constructor.
Defined in the Base DLL.
- Parameters
-
◆ ~OutOfBoundsError()
| StormByte::Safe::OutOfBoundsError::~OutOfBoundsError |
( |
| ) |
|
|
overridenoexcept |
Destructor.
Defined in the Base DLL so catch matches across modules.
◆ operator=() [1/2]
Copy assignment.
Defined in the Base DLL.
- Parameters
-
- Returns
- This exception.
◆ operator=() [2/2]
Move assignment.
Defined in the Base DLL.
- Parameters
-
- Returns
- This exception.
The documentation for this class was generated from the following file: