LiteFX::ArgumentOutOfRangeException::ArgumentOutOfRangeException¶
Initializes a new exception.
Synopsis¶
Declared in <litefx/exceptions.hpp>
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. |
| validRange | The lower bound and upper bound of the valid range. |
| value | The actual value of provided to the argument. |
| format | The format string for the error message. |
| args | The arguments passed to the error message format string. |