LiteFX::ArgumentOutOfRangeException::ArgumentOutOfRangeException¶
Initializes a new exception.
Synopses¶
Declared in <litefx/exceptions.hpp>
Copy constructor
constexpr ArgumentOutOfRangeException(ArgumentOutOfRangeException const& other) = default;
Move constructor
constexpr ArgumentOutOfRangeException(ArgumentOutOfRangeException&& other) noexcept = default;
Initializes a new exception.
explicit ArgumentOutOfRangeException(std::string_view argument);
Initializes a new exception.
explicit ArgumentOutOfRangeException(
std::string_view argument,
std::string_view message);
Initializes a new exception.
template<typename... TArgs>
explicit ArgumentOutOfRangeException(
std::string_view argument,
std::format_string<TArgs...> format,
TArgs&&... args);
Initializes a new exception.
template<
typename T,
typename... TArgs>
explicit ArgumentOutOfRangeException(
std::string_view argument,
std::pair<T, T> validRange,
T value,
std::format_string<TArgs...> format,
TArgs&&... args);
Template Parameters¶
| Name | Description |
|---|---|
| T | The type of the argument that was out of range. |
Parameters¶
| Name | Description |
|---|---|
| argument | The name of the argument that was out of range. |
| message | The error message. |
| format | The format string for the error message. |
| args | The arguments passed to the error message format string. |
| validRange | The lower bound and upper bound of the valid range. |
| value | The actual value of provided to the argument. |