Babel  1
The voip software that only works on your local network
Loading...
Searching...
No Matches
Found.cpp
Go to the documentation of this file.
1/*
2** EPITECH PROJECT, 2024
3** rtype (Workspace)
4** File description:
5** Found.cpp
6*/
7
15
16namespace CustomExceptions
17{
23 {
24 _msg = "Info: The Help option was found, exiting.";
25 _buffer = _msg.c_str();
26 }
27
32
37 const char *HelpFound::what() const noexcept
38 {
39 return _buffer;
40 }
41
47 {
48 _msg = "Info: The Version option was found, exiting.";
49 _buffer = _msg.c_str();
50 }
51
56
61 const char *VersionFound::what() const noexcept
62 {
63 return _buffer;
64 }
65
71 {
72 _msg = "Info: The thread was found and was thus forcibly terminated.";
73 _buffer = _msg.c_str();
74 }
75
80
85 const char *ThreadFound::what() const noexcept
86 {
87 return _buffer;
88 }
89
90}
This file contains the definitions of custom exception classes used to inform the program about found...
~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
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
~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