StormByte C++ Library: Buffer module 1.2.0
StormByte-Buffer is the buffer module of the StormByte C++ suite.
Loading...
Searching...
No Matches
Public Member Functions | List of all members
StormByte::Buffer::Error Class Reference

General exception class for buffer errors. More...

#include <StormByte/buffer/exception.hxx>

Inheritance diagram for StormByte::Buffer::Error:
Inheritance graph
[legend]
Collaboration diagram for StormByte::Buffer::Error:
Collaboration graph
[legend]

Public Member Functions

 Exception (const std::string &message)
 Construct a Buffer exception from an unformatted message.
 
 Exception (std::string &&message)
 Construct a Buffer exception from a moved unformatted message.
 
template<typename... Args>
 Exception (StormByte::Component component, std::format_string< Args... > fmt, Args &&... args)
 Construct a Buffer exception with an explicit component.
 
template<typename... Args>
 Exception (std::format_string< Args... > fmt, Args &&... args)
 Construct a Buffer exception with a formatted message.
 
- Public Member Functions inherited from StormByte::Buffer::Exception
 Exception (const std::string &message)
 Construct a Buffer exception from an unformatted message.
 
 Exception (std::string &&message)
 Construct a Buffer exception from a moved unformatted message.
 
template<typename... Args>
 Exception (StormByte::Component component, std::format_string< Args... > fmt, Args &&... args)
 Construct a Buffer exception with an explicit component.
 
template<typename... Args>
 Exception (std::format_string< Args... > fmt, Args &&... args)
 Construct a Buffer exception with a formatted message.
 

Detailed Description

General exception class for buffer errors.

Intermediate base for module-specific failures. Inherits constructors from Exception via using Exception::Exception.

See also
ReadError, WriteError

Member Function Documentation

◆ Exception() [1/4]

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

Construct a Buffer exception from an unformatted message.

Parameters
messageException text.

◆ Exception() [2/4]

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

Construct a Buffer exception with a formatted message.

Template Parameters
ArgsFormat argument types.
Parameters
fmtC++20 format string.
argsFormat arguments.

◆ Exception() [3/4]

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

Construct a Buffer exception from a moved unformatted message.

Parameters
messageException text.

◆ Exception() [4/4]

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

Construct a Buffer exception with an explicit component.

Template Parameters
ArgsFormat argument types.
Parameters
componentComponent name inserted after "StormByte::".
fmtC++20 format string.
argsFormat arguments.

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