3#include <StormByte/visibility.h>
45 template <
typename...
Args>
47 if constexpr (
sizeof...(Args) == 0) {
49 m_what = copy_str(
fmt);
Base class for exceptions in the StormByte library.
Definition exception.hxx:23
Exception(const std::string &message)
Constructor.
Exception(std::string &&message)
Constructor.
Exception(Exception &&e) noexcept
Move constructor.
Exception(const Exception &e)
Copy constructor.
Exception(std::format_string< Args... > fmt, Args &&... args)
Constructor forwards the message to the std::format function.
Definition exception.hxx:46
virtual ~Exception() noexcept
Destructor.
Main namespace for the StormByte library.
std::conditional_t< is_reference< T >::value, std::expected< std::reference_wrapper< std::remove_reference_t< T > >, std::shared_ptr< E > >, std::expected< T, std::shared_ptr< E > > > Expected
Expected type with support for reference types.
Definition expected.hxx:32