LiteFX::InvalidArgumentException::InvalidArgumentException¶
Initializes a new exception.
Synopses¶
Declared in <litefx/exceptions.hpp>
Copy constructor
constexpr InvalidArgumentException(InvalidArgumentException const& other) = default;
Move constructor
constexpr InvalidArgumentException(InvalidArgumentException&& other) noexcept = default;
Initializes a new exception.
explicit InvalidArgumentException(std::string_view argument);
Initializes a new exception.
explicit InvalidArgumentException(
std::string_view argument,
std::string_view message);
Initializes a new exception.
template<typename... TArgs>
explicit InvalidArgumentException(
std::string_view argument,
std::format_string<TArgs...> format,
TArgs&&... args);
Parameters¶
| Name | Description |
|---|---|
| argument | The name of the argument that was invalid. |
| message | The error message. |
| format | The format string for the error message. |
| args | The arguments passed to the error message format string. |