3#include <StormByte/exception.hxx>
4#include <StormByte/network/visibility.h>
15 class STORMBYTE_NETWORK_PUBLIC
Exception:
public StormByte::Exception {
17 template <
typename... Args>
18 Exception(
const std::string& component, std::format_string<Args...> fmt, Args&&... args):
19 StormByte::
Exception(
"Network::" + component, fmt, std::forward<Args>(args)...) {}
24 using StormByte::Exception::Exception;
33 template <
typename... Args>
35 Exception(
"Connection", fmt, std::forward<Args>(args)...) {}
40 using Exception::Exception;
49 template <
typename... Args>
51 Exception(
"Connection: Connection closed. " + fmt, std::forward<Args>(args)...) {}
56 using Exception::Exception;
65 template <
typename... Args>
66 PacketError(std::format_string<Args...> fmt, Args&&... args):
67 Exception(
"Transport::Packet: ", fmt, std::forward<Args>(args)...) {}
72 using Exception::Exception;
81 template <
typename... Args>
82 FrameError(std::format_string<Args...> fmt, Args&&... args):
83 Exception(
"Transport::Frame: ", fmt, std::forward<Args>(args)...) {}
88 using Exception::Exception;
The class representing a terminated connection.
Definition exception.hxx:47
The class representing an error in the connection.
Definition exception.hxx:31
The class representing an exception in the network module.
Definition exception.hxx:15
The class representing an error in the packet.
Definition exception.hxx:79
The class representing an error in the packet.
Definition exception.hxx:63
Network-related classes used by the StormByte networking subsystem.