StormByte-Network 4.0.0
C++26 networking module of the StormByte suite
Loading...
Searching...
No Matches
StormByte::Network::FrameError Class Referencefinal

Transport frame error. More...

#include <StormByte/network/exception.hxx>

Inheritance diagram for StormByte::Network::FrameError:
Collaboration diagram for StormByte::Network::FrameError:

Public Member Functions

template<typename... Args>
requires (sizeof...(Args) >= 1)
 FrameError (std::string_view pattern, Args &&... args)
 Replace literal {} under StormByte.Network.Transport.Frame.
 FrameError (std::string_view message)
 Copy a borrowed plain message under StormByte.Network.Transport.Frame.
template<typename... Args>
requires (sizeof...(Args) >= 1)
 FrameError (Path path, std::string_view pattern, Args &&... args)
 Replace literal {} under an additional Network path.
 FrameError (Path path, std::string_view message)
 Copy a borrowed plain message under an additional Network path.
 FrameError (const FrameError &other)
 Copy the frame error inside Network.
 FrameError (FrameError &&other) noexcept
 Move the frame error inside Network.
 ~FrameError () noexcept override
 Destructor.
FrameError & operator= (const FrameError &other)
 Copy-assign the frame error.
FrameError & operator= (FrameError &&other) noexcept
 Move-assign the frame error.
Public Member Functions inherited from StormByte::Network::Exception
template<typename... Args>
requires (sizeof...(Args) >= 1)
 Exception (std::string_view pattern, Args &&... args)
 Replace literal {} under StormByte.Network.
 Exception (std::string_view message)
 Copy a borrowed plain message under StormByte.Network in the provider.
template<typename... Args>
requires (sizeof...(Args) >= 1)
 Exception (Path path, std::string_view pattern, Args &&... args)
 Replace literal {} under an additional Network path.
 Exception (Path path, std::string_view message)
 Copy a borrowed plain message under an additional Network path.
 Exception (const Exception &other)
 Copy Base-owned message storage through its provider.
 Exception (Exception &&other) noexcept
 Transfer Base-owned message storage without allocating.
Exception & operator= (const Exception &other)
 Copy Base-owned message storage through its provider.
Exception & operator= (Exception &&other) noexcept
 Transfer Base-owned message storage without allocating.
 ~Exception () noexcept override
 Destroy the exception.
Public Member Functions inherited from StormByte::Exception
 Exception (std::string_view message)
 Exception (const Exception &other)
 Exception (Exception &&other) noexcept
Exception & operator= (const Exception &other)
Exception & operator= (Exception &&other) noexcept
virtual const char * what () const noexcept

Additional Inherited Members

Protected Member Functions inherited from StormByte::Exception
 Exception () noexcept
 Exception (Path path, std::string_view message)
 Exception (Path path, Safe::String &&message)
 Exception (Path path, std::string_view pattern, Args &&... args)

Detailed Description

Transport frame error.

what() is StormByte.Network.Transport.Frame: message.

Constructor & Destructor Documentation

◆ FrameError() [1/6]

template<typename... Args>
requires (sizeof...(Args) >= 1)
StormByte::Network::FrameError::FrameError ( std::string_view pattern,
Args &&... args )
inlineexplicit

Replace literal {} under StormByte.Network.Transport.Frame.

Template Parameters
ArgsViews, numbers, or types that convert to std::string. A number uses std::to_string.
Parameters
patternBody with literal {} tokens. Not a std::format string.
argsReplacements. One per token, in order.

◆ FrameError() [2/6]

StormByte::Network::FrameError::FrameError ( std::string_view message)
inlineexplicit

Copy a borrowed plain message under StormByte.Network.Transport.Frame.

Parameters
messageException text. Copied during the call and never retained.

◆ FrameError() [3/6]

template<typename... Args>
requires (sizeof...(Args) >= 1)
StormByte::Network::FrameError::FrameError ( Path path,
std::string_view pattern,
Args &&... args )
inlineexplicit

Replace literal {} under an additional Network path.

Template Parameters
ArgsViews, numbers, or types that convert to std::string. A number uses std::to_string.
Parameters
pathAdditional segments nested below StormByte.Network.
patternBody with literal {} tokens. Not a std::format string.
argsReplacements. One per token, in order.

◆ FrameError() [4/6]

StormByte::Network::FrameError::FrameError ( Path path,
std::string_view message )
inlineexplicit

Copy a borrowed plain message under an additional Network path.

Parameters
pathAdditional segments nested below StormByte.Network.
messageException text. Not a format string.

◆ FrameError() [5/6]

StormByte::Network::FrameError::FrameError ( const FrameError & other)

Copy the frame error inside Network.

Parameters
otherSource error.

◆ FrameError() [6/6]

StormByte::Network::FrameError::FrameError ( FrameError && other)
noexcept

Move the frame error inside Network.

Parameters
otherSource error.

◆ ~FrameError()

StormByte::Network::FrameError::~FrameError ( )
overridenoexcept

Destructor.

Defined in the Network library to anchor RTTI.

Member Function Documentation

◆ operator=() [1/2]

FrameError & StormByte::Network::FrameError::operator= ( const FrameError & other)

Copy-assign the frame error.

Parameters
otherSource error.
Returns
This error.

◆ operator=() [2/2]

FrameError & StormByte::Network::FrameError::operator= ( FrameError && other)
noexcept

Move-assign the frame error.

Parameters
otherSource error.
Returns
This error.

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