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

An exception that is thrown, if a requested operation could not be executed. More...

#include <exceptions.hpp>

Inherits LiteFX::Exception.

Inherited by LiteFX::Rendering::Backends::DX12PlatformException, and LiteFX::Rendering::Backends::VulkanPlatformException.

Public Member Functions

 RuntimeException ()
 Initializes a new exception.
 
 RuntimeException (std::string_view message)
 Initializes a new exception.
 
template<typename ... TArgs>
 RuntimeException (std::format_string< TArgs... > format, TArgs &&... args)
 Initializes a new exception.
 
 RuntimeException (const RuntimeException &)=default
 
 RuntimeException (RuntimeException &&) noexcept=default
 
 ~RuntimeException () noexcept override=default
 
RuntimeExceptionoperator= (const RuntimeException &)=default
 
RuntimeExceptionoperator= (RuntimeException &&) noexcept=default
 
- 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 requested operation could not be executed.

Constructor & Destructor Documentation

◆ RuntimeException() [1/5]

LiteFX::RuntimeException::RuntimeException ( )
inlineexplicit

Initializes a new exception.

◆ RuntimeException() [2/5]

LiteFX::RuntimeException::RuntimeException ( std::string_view message)
inlineexplicit

Initializes a new exception.

Parameters
messageThe error message.

◆ RuntimeException() [3/5]

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

Initializes a new exception.

Parameters
formatThe format string for the error message.
argsThe arguments passed to the error message format string.

◆ RuntimeException() [4/5]

LiteFX::RuntimeException::RuntimeException ( const RuntimeException & )
default

◆ RuntimeException() [5/5]

LiteFX::RuntimeException::RuntimeException ( RuntimeException && )
defaultnoexcept

◆ ~RuntimeException()

LiteFX::RuntimeException::~RuntimeException ( )
overridedefaultnoexcept

Member Function Documentation

◆ operator=() [1/2]

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

◆ operator=() [2/2]

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