Babel  1
The voip software that only works on your local network
Loading...
Searching...
No Matches
Failed.hpp
Go to the documentation of this file.
1/*
2** EPITECH PROJECT, 2024
3** rtype (Workspace)
4** File description:
5** Failed.hpp
6*/
7
13#pragma once
14#include <string>
15#include <exception>
16
17#include "Recoded.hpp"
18
19namespace CustomExceptions
20{
24 class ConnectionFailed : public std::exception {
25 public:
31 ConnectionFailed(const std::string &address = "");
40 const char *what() const noexcept;
41
42 private:
43 std::string _msg;
44 const char *_buffer;
45 };
46
47}
Aggregates headers from the Recoded folder.
Exception class for failed connection attempts.
Definition Failed.hpp:24
const char * what() const noexcept
Retrieves the error message.
Definition Failed.cpp:30
~ConnectionFailed()
Destroy the ConnectionFailed object.
Definition Failed.cpp:28
ConnectionFailed(const std::string &address="")
Construct a new ConnectionFailed object.
Definition Failed.cpp:19