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

Peer closed while waiting or transferring. More...

#include <StormByte/network/exception.hxx>

Inheritance diagram for StormByte::Network::ConnectionClosed:
Collaboration diagram for StormByte::Network::ConnectionClosed:

Public Member Functions

template<typename... Args>
requires (sizeof...(Args) >= 1)
 ConnectionClosed (std::string_view pattern, Args &&... args)
 Replace literal {}, then prefix Connection closed: .
 ConnectionClosed (std::string_view message)
 Prefix a borrowed message with Connection closed: .
template<typename... Args>
requires (sizeof...(Args) >= 1)
 ConnectionClosed (Path path, std::string_view pattern, Args &&... args)
 Replace literal {} under an additional Network path.
 ConnectionClosed (Path path, std::string_view message)
 Copy a borrowed plain message under an additional Network path.
 ConnectionClosed (const ConnectionClosed &other)
 Copy the closed-connection error inside Network.
 ConnectionClosed (ConnectionClosed &&other) noexcept
 Move the closed-connection error inside Network.
 ~ConnectionClosed () noexcept override
 Destructor.
ConnectionClosed & operator= (const ConnectionClosed &other)
 Copy-assign the closed-connection error.
ConnectionClosed & operator= (ConnectionClosed &&other) noexcept
 Move-assign the closed-connection 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

Peer closed while waiting or transferring.

The message constructors prefix Connection closed: under StormByte.Network.Connection. A Path constructor does not add that prefix.

Constructor & Destructor Documentation

◆ ConnectionClosed() [1/6]

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

Replace literal {}, then prefix Connection closed: .

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.

◆ ConnectionClosed() [2/6]

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

Prefix a borrowed message with Connection closed: .

Parameters
messageException text. Not a format string.

◆ ConnectionClosed() [3/6]

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

Replace literal {} under an additional Network path.

No closed prefix.

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.

◆ ConnectionClosed() [4/6]

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

Copy a borrowed plain message under an additional Network path.

No closed prefix.

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

◆ ConnectionClosed() [5/6]

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

Copy the closed-connection error inside Network.

Parameters
otherSource error.

◆ ConnectionClosed() [6/6]

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

Move the closed-connection error inside Network.

Parameters
otherSource error.

◆ ~ConnectionClosed()

StormByte::Network::ConnectionClosed::~ConnectionClosed ( )
overridenoexcept

Destructor.

Defined in the Network library to anchor RTTI.

Member Function Documentation

◆ operator=() [1/2]

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

Move-assign the closed-connection error.

Parameters
otherSource error.
Returns
This error.

◆ operator=() [2/2]

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

Copy-assign the closed-connection error.

Parameters
otherSource error.
Returns
This error.

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