Babel  1
The voip software that only works on your local network
Loading...
Searching...
No Matches
Found.hpp
Go to the documentation of this file.
1/*
2** EPITECH PROJECT, 2024
3** rtype (Workspace)
4** File description:
5** Found.hpp
6*/
7
14#pragma once
15#include <string>
16#include <exception>
17
18#include "Recoded.hpp"
19
20namespace CustomExceptions
21{
22
27 class HelpFound : public std::exception {
28 public:
33 HelpFound();
37 ~HelpFound();
42 const char *what() const noexcept;
43
44 private:
45 std::string _msg;
46 const char *_buffer;
47 };
48
53 class VersionFound : public std::exception {
54 public:
68 const char *what() const noexcept;
69
70 private:
71 std::string _msg;
72 const char *_buffer;
73 };
74
79 class ThreadFound : public std::exception {
80 public:
94 const char *what() const noexcept;
95
96 private:
97 std::string _msg;
98 const char *_buffer;
99 };
100}
Aggregates headers from the Recoded folder.
Exception class for the help flag. This is not an error.
Definition Found.hpp:27
~HelpFound()
Destroy the HelpFound object.
Definition Found.cpp:31
const char * what() const noexcept
Retrieves the message.
Definition Found.cpp:37
HelpFound()
Construct a new HelpFound object. Sets the message indicating that the help option was found.
Definition Found.cpp:22
Exception class for the thread termination. This is not an error.
Definition Found.hpp:79
const char * what() const noexcept
Retrieves the message.
Definition Found.cpp:85
~ThreadFound()
Destroy the ThreadFound object.
Definition Found.cpp:79
ThreadFound()
Construct a new ThreadFound object. Sets the message indicating that a thread was found and terminate...
Definition Found.cpp:70
Exception class for the version flag. This is not an error.
Definition Found.hpp:53
~VersionFound()
Destroy the VersionFound object.
Definition Found.cpp:55
VersionFound()
Construct a new VersionFound object. Sets the message indicating that the version option was found.
Definition Found.cpp:46
const char * what() const noexcept
Retrieves the message.
Definition Found.cpp:61