R-Type  2
Doom but in better
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{
19 {
20 _msg = "Info: The Help option was found, exiting.";
21 _buffer = _msg.c_str();
22 }
23
25
26 const char *HelpFound::what() const noexcept
27 {
28 return _buffer;
29 }
30
32 {
33 _msg = "Info: The Version option was found, exiting.";
34 _buffer = _msg.c_str();
35 }
36
38
39 const char *VersionFound::what() const noexcept
40 {
41 return _buffer;
42 }
43
44}
File in charge of storing the exceptions (that are not errors) informing the program of found content...
~HelpFound()
Destroy the Help Found object.
Definition Found.cpp:24
const char * what() const noexcept
Retrieves the error message.
Definition Found.cpp:26
HelpFound()
Construct a new Help Found object.
Definition Found.cpp:18
~VersionFound()
Destroy the Version Found object.
Definition Found.cpp:37
VersionFound()
Construct a new Version Found object.
Definition Found.cpp:31
const char * what() const noexcept
Retrieves the error message.
Definition Found.cpp:39