Skip to content

LiteFX::ArgumentOutOfRangeException::ArgumentOutOfRangeException

Initializes a new exception.

Synopses

Declared in <litefx/exceptions.hpp>

Copy constructor

constexpr ArgumentOutOfRangeException(ArgumentOutOfRangeException const& other) = default;

» more...

Move constructor

constexpr ArgumentOutOfRangeException(ArgumentOutOfRangeException&& other) noexcept = default;

» more...

Initializes a new exception.

explicit ArgumentOutOfRangeException(std::string_view argument);

» more...

Initializes a new exception.

explicit ArgumentOutOfRangeException(
    std::string_view argument,
    std::string_view message);

» more...

Initializes a new exception.

template<typename... TArgs>
explicit ArgumentOutOfRangeException(
    std::string_view argument,
    std::format_string<TArgs...> format,
    TArgs&&... args);

» more...

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);

» more...

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.
messageThe error message.
formatThe format string for the error message.
argsThe arguments passed to the error message format string.
validRangeThe lower bound and upper bound of the valid range.
valueThe actual value of provided to the argument.