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

Connection or socket operation failed. More...

#include <StormByte/network/exception.hxx>

Inheritance diagram for StormByte::Network::ConnectionError:
Collaboration diagram for StormByte::Network::ConnectionError:

Public Member Functions

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

Connection or socket operation failed.

what() is StormByte.Network.Connection: message.

Constructor & Destructor Documentation

◆ ConnectionError() [1/6]

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

Replace literal {} under StormByte.Network.Connection.

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.

◆ ConnectionError() [2/6]

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

Copy a borrowed plain message under StormByte.Network.Connection.

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

◆ ConnectionError() [3/6]

template<typename... Args>
requires (sizeof...(Args) >= 1)
StormByte::Network::ConnectionError::ConnectionError ( 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.

◆ ConnectionError() [4/6]

StormByte::Network::ConnectionError::ConnectionError ( 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.

◆ ConnectionError() [5/6]

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

Copy the connection error inside Network.

Parameters
otherSource error.

◆ ConnectionError() [6/6]

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

Move the connection error inside Network.

Parameters
otherSource error.

◆ ~ConnectionError()

StormByte::Network::ConnectionError::~ConnectionError ( )
overridenoexcept

Destructor.

Defined in the Network library to anchor RTTI.

Member Function Documentation

◆ operator=() [1/2]

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

Move-assign the connection error.

Parameters
otherSource error.
Returns
This error.

◆ operator=() [2/2]

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

Copy-assign the connection error.

Parameters
otherSource error.
Returns
This error.

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