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

Root exception for Buffer. More...

#include <StormByte/buffer/exception.hxx>

Inheritance diagram for StormByte::Buffer::Exception:
Collaboration diagram for StormByte::Buffer::Exception:

Public Member Functions

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

Detailed Description

Root exception for Buffer.

what() is StormByte.Buffer: message.

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

See also
Error, ReadError, WriteError

Constructor & Destructor Documentation

◆ Exception() [1/3]

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

Format under StormByte.Buffer.

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

◆ Exception() [2/3]

StormByte::Buffer::Exception::Exception ( std::string  message)
inlineexplicit

Format a plain message under StormByte.Buffer.

Parameters
messageException text.

◆ ~Exception()

StormByte::Buffer::Exception::~Exception ( )
overridevirtualnoexcept

Destructor.

Defined in this module so catch matches across a DLL.

Reimplemented from StormByte::Exception.

◆ Exception() [3/3]

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

Format under StormByte.Buffer.

<child>.

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

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