1 #ifndef SERVER_EXCEPTIONS_H
2 #define SERVER_EXCEPTIONS_H
15 "The client: " + std::to_string(client_id) +
" has disconnected.";
16 std::strncpy(err_msg, str.c_str(), 100);
20 std::string str =
"The client: " + name +
" has disconnected.";
21 std::strncpy(err_msg, str.c_str(), 100);
26 const char* what()
const noexcept
override {
37 std::string str =
"The player: " + name +
" is already connected!";
38 std::strncpy(err_msg, str.c_str(), 100);
43 const char* what()
const noexcept
override {
48 #endif // SERVER_EXCEPTIONS_H