LiteFX 0.4.1.2025
Computer Graphics Engine
|
An exception that is thrown, if a provided argument is not within the expected range. More...
#include <exceptions.hpp>
Inherits LiteFX::Exception.
Public Member Functions | |
ArgumentOutOfRangeException (std::string_view argument) | |
Initializes a new exception. | |
ArgumentOutOfRangeException (std::string_view argument, std::string_view message) | |
Initializes a new exception. | |
template<typename ... TArgs> | |
ArgumentOutOfRangeException (std::string_view argument, std::format_string< TArgs... > format, TArgs &&... args) | |
Initializes a new exception. | |
template<typename T , typename ... TArgs> | |
ArgumentOutOfRangeException (std::string_view argument, std::pair< T, T > validRange, T value, std::format_string< TArgs... > format, TArgs &&... args) | |
Initializes a new exception. | |
ArgumentOutOfRangeException (const ArgumentOutOfRangeException &)=default | |
ArgumentOutOfRangeException (ArgumentOutOfRangeException &&) noexcept=default | |
~ArgumentOutOfRangeException () noexcept override=default | |
ArgumentOutOfRangeException & | operator= (const ArgumentOutOfRangeException &)=default |
ArgumentOutOfRangeException & | operator= (ArgumentOutOfRangeException &&) noexcept=default |
const std::string & | argument () const noexcept |
Gets the name of the argument that was out of range. | |
![]() | |
Exception (const Exception &)=default | |
Exception (Exception &&) noexcept=default | |
~Exception () noexcept override=default | |
Exception & | operator= (const Exception &)=default |
Exception & | operator= (Exception &&) noexcept=default |
const std::source_location & | location () const noexcept |
Gets the source location that identifies where the exception has been thrown. | |
const std::stacktrace & | trace () const noexcept |
Gets the stack trace leading to the exception. | |
Additional Inherited Members | |
![]() | |
Exception (const std::string &message, const std::source_location &location, std::stacktrace trace) | |
Initializes the exception. | |
An exception that is thrown, if a provided argument is not within the expected range.
|
inlineexplicit |
Initializes a new exception.
argument | The name of the argument that was out of range. |
|
inlineexplicit |
Initializes a new exception.
argument | The name of the argument that was out of range. |
message | The error message. |
|
inlineexplicit |
Initializes a new exception.
argument | The name of the argument that was out of range. |
format | The format string for the error message. |
args | The arguments passed to the error message format string. |
|
inlineexplicit |
Initializes a new exception.
T | The type of the argument that was out of range. |
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. |
|
default |
|
defaultnoexcept |
|
overridedefaultnoexcept |
|
inlinenoexcept |
Gets the name of the argument that was out of range.
|
defaultnoexcept |
|
default |