R-Type  2
Doom but in better
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
14#pragma once
15#include <string>
16#include <exception>
17
18#include "Recoded.hpp"
19
21{
26 class ConnectionFailed : public std::exception {
27 public:
33 ConnectionFailed(const std::string &address = "");
43 const char *what() const noexcept;
44
45 private:
46 std::string _msg;
47 const char *_buffer;
48 };
49
50}
This is an agglomerator in which all the files from Recoded folder will be included.
This is the class in charge of raising the ConnectionFailed error.
Definition Failed.hpp:26
const char * what() const noexcept
Retrieves the error message.
Definition Failed.cpp:30
~ConnectionFailed()
Destroy the Connection Failed object.
Definition Failed.cpp:28
ConnectionFailed(const std::string &address="")
Construct a new Connection Failed object.
Definition Failed.cpp:19