StormByte-Database 2.0.0
C++26 database module of the StormByte suite
 
Loading...
Searching...
No Matches
StormByte::Database::Exception Class Reference

Base exception for the Database module. More...

#include <StormByte/database/exception.hxx>

Inheritance diagram for StormByte::Database::Exception:
Collaboration diagram for StormByte::Database::Exception:

Public Member Functions

 Exception (std::string_view message)
 Construct with an unformatted message.
 
template<typename... Args>
 Exception (std::format_string< Args... > fmt, Args &&...args)
 Construct with a formatted message.
 
virtual ~Exception () noexcept override
 Destructor.
 
- Public Member Functions inherited from StormByte::Exception
 Exception (const std::string &message)
 
 Exception (std::string &&message)
 
 Exception (std::format_string< Args... > fmt, Args &&... args)
 
 Exception (const Exception &e)=default
 
 Exception (Exception &&e) noexcept=default
 
Exception & operator= (const Exception &e)=default
 
Exception & operator= (Exception &&e) noexcept=default
 
virtual const char * what () const noexcept
 

Protected Member Functions

template<typename... Args>
 Exception (StormByte::Exception::Path path, std::format_string< Args... > fmt, Args &&...args)
 Construct with a qualified database path and formatted message.
 
- Protected Member Functions inherited from StormByte::Exception
 Exception (Path path, std::format_string< Args... > fmt, Args &&... args)
 

Detailed Description

Base exception for the Database module.

Constructor & Destructor Documentation

◆ Exception() [1/3]

StormByte::Database::Exception::Exception ( std::string_view  message)
explicit

Construct with an unformatted message.

Parameters
messageMessage text.

◆ Exception() [2/3]

template<typename... Args>
StormByte::Database::Exception::Exception ( std::format_string< Args... >  fmt,
Args &&...  args 
)
inline

Construct with a formatted message.

Template Parameters
ArgsFormat argument types.
Parameters
fmtFormat string.
argsFormat arguments.

◆ ~Exception()

virtual StormByte::Database::Exception::~Exception ( )
overridevirtualnoexcept

Destructor.

Reimplemented from StormByte::Exception.

◆ Exception() [3/3]

template<typename... Args>
StormByte::Database::Exception::Exception ( StormByte::Exception::Path  path,
std::format_string< Args... >  fmt,
Args &&...  args 
)
inlineprotected

Construct with a qualified database path and formatted message.

Template Parameters
ArgsFormat argument types.
Parameters
pathQualified component path.
fmtFormat string.
argsFormat arguments.

The documentation for this class was generated from the following file: