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

Root exception for Logger. More...

#include <StormByte/logger/exception.hxx>

Inheritance diagram for StormByte::Logger::Exception:
Collaboration diagram for StormByte::Logger::Exception:

Public Member Functions

template<typename... Args>
 Exception (std::format_string< Args... > fmt, Args &&... args)
 Format under StormByte.Logger.
 
 ~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 child, std::format_string< Args... > fmt, Args &&... args)
 Format under StormByte.Logger.
 
- Protected Member Functions inherited from StormByte::Exception
 Exception (Path path, std::format_string< Args... > fmt, Args &&... args)
 

Detailed Description

Root exception for Logger.

what() is StormByte.Logger: message.

Forwards the format and the arguments. Does not format. A child segment is prepended under Logger.

Constructor & Destructor Documentation

◆ Exception() [1/2]

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

Format under StormByte.Logger.

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

◆ ~Exception()

StormByte::Logger::Exception::~Exception ( )
overridevirtualnoexcept

Destructor.

Defined in this module so catch matches across a DLL.

Reimplemented from StormByte::Exception.

◆ Exception() [2/2]

template<typename... Args>
StormByte::Logger::Exception::Exception ( StormByte::Exception::Path  child,
std::format_string< Args... >  fmt,
Args &&...  args 
)
inlineexplicitprotected

Format under StormByte.Logger.

<child>.

Template Parameters
ArgsFormat argument types.
Parameters
childSegment under Logger.
fmtFormat string.
argsFormat arguments.

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