Skip to content

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

NameDescription
TThe type of the argument that was out of range.

Parameters

NameDescription
argumentThe name of the argument that was out of range.
validRangeThe lower bound and upper bound of the valid range.
valueThe actual value of provided to the argument.
formatThe format string for the error message.
argsThe arguments passed to the error message format string.