Skip to content

LiteFX::InvalidArgumentException::InvalidArgumentException

Initializes a new exception.

Synopses

Declared in <litefx/exceptions.hpp>

Copy constructor

constexpr InvalidArgumentException(InvalidArgumentException const& other) = default;

» more...

Move constructor

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

» more...

Initializes a new exception.

explicit InvalidArgumentException(std::string_view argument);

» more...

Initializes a new exception.

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

» more...

Initializes a new exception.

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

» more...

Parameters

NameDescription
argumentThe name of the argument that was invalid.
messageThe error message.
formatThe format string for the error message.
argsThe arguments passed to the error message format string.