LiteFX 0.4.1.2025
Computer Graphics Engine
Loading...
Searching...
No Matches
LiteFX::ArgumentNotInitializedException Class Reference

An exception that is thrown, if a provided non-optional argument was not initialized. More...

#include <exceptions.hpp>

Inherits LiteFX::Exception.

Public Member Functions

 ArgumentNotInitializedException (std::string_view argument)
 Initializes a new exception.
 
 ArgumentNotInitializedException (std::string_view argument, std::string_view message)
 Initializes a new exception.
 
template<typename ... TArgs>
 ArgumentNotInitializedException (std::string_view argument, std::format_string< TArgs... > format, TArgs &&... args)
 Initializes a new exception.
 
 ArgumentNotInitializedException (const ArgumentNotInitializedException &)=default
 
 ArgumentNotInitializedException (ArgumentNotInitializedException &&) noexcept=default
 
 ~ArgumentNotInitializedException () noexcept override=default
 
ArgumentNotInitializedExceptionoperator= (const ArgumentNotInitializedException &)=default
 
ArgumentNotInitializedExceptionoperator= (ArgumentNotInitializedException &&) noexcept=default
 
const std::string & argument () const noexcept
 Gets the name of the argument that was not initialized.
 
- Public Member Functions inherited from LiteFX::Exception
 Exception (const Exception &)=default
 
 Exception (Exception &&) noexcept=default
 
 ~Exception () noexcept override=default
 
Exceptionoperator= (const Exception &)=default
 
Exceptionoperator= (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

- Protected Member Functions inherited from LiteFX::Exception
 Exception (const std::string &message, const std::source_location &location, std::stacktrace trace)
 Initializes the exception.
 

Detailed Description

An exception that is thrown, if a provided non-optional argument was not initialized.

Constructor & Destructor Documentation

◆ ArgumentNotInitializedException() [1/5]

LiteFX::ArgumentNotInitializedException::ArgumentNotInitializedException ( std::string_view argument)
inlineexplicit

Initializes a new exception.

Parameters
argumentThe name of the argument that was not initialized.

◆ ArgumentNotInitializedException() [2/5]

LiteFX::ArgumentNotInitializedException::ArgumentNotInitializedException ( std::string_view argument,
std::string_view message )
inlineexplicit

Initializes a new exception.

Parameters
argumentThe name of the argument that was not initialized.
messageThe error message.

◆ ArgumentNotInitializedException() [3/5]

template<typename ... TArgs>
LiteFX::ArgumentNotInitializedException::ArgumentNotInitializedException ( std::string_view argument,
std::format_string< TArgs... > format,
TArgs &&... args )
inlineexplicit

Initializes a new exception.

Parameters
argumentThe name of the argument that was not initialized.
formatThe format string for the error message.
argsThe arguments passed to the error message format string.

◆ ArgumentNotInitializedException() [4/5]

LiteFX::ArgumentNotInitializedException::ArgumentNotInitializedException ( const ArgumentNotInitializedException & )
default

◆ ArgumentNotInitializedException() [5/5]

LiteFX::ArgumentNotInitializedException::ArgumentNotInitializedException ( ArgumentNotInitializedException && )
defaultnoexcept

◆ ~ArgumentNotInitializedException()

LiteFX::ArgumentNotInitializedException::~ArgumentNotInitializedException ( )
overridedefaultnoexcept

Member Function Documentation

◆ argument()

const std::string & LiteFX::ArgumentNotInitializedException::argument ( ) const
inlinenoexcept

Gets the name of the argument that was not initialized.

Returns
The name of the invalid argument.

◆ operator=() [1/2]

ArgumentNotInitializedException & LiteFX::ArgumentNotInitializedException::operator= ( ArgumentNotInitializedException && )
defaultnoexcept

◆ operator=() [2/2]

ArgumentNotInitializedException & LiteFX::ArgumentNotInitializedException::operator= ( const ArgumentNotInitializedException & )
default