R-Type  2
Doom but in better
Loading...
Searching...
No Matches
Unknown.cpp
Go to the documentation of this file.
1/*
2** EPITECH PROJECT, 2024
3** rtype (Workspace)
4** File description:
5** Unknown.cpp
6*/
7
15
16namespace CustomExceptions
17{
18
19 UnknownArgument::UnknownArgument(const std::string &argument)
20 {
21 _msg = "Error: The argument you provided is unknown.\n";
22 _msg += "The argument was: '";
23 _msg += argument;
24 _msg += "'.";
25 _buffer = _msg.c_str();
26 };
27
29
30 const char *UnknownArgument::what() const noexcept
31 {
32 return _buffer;
33 }
34
35}
File in charge of informing the user that the program received an unknown element.
~UnknownArgument()
Destroy the Unknown Argument object.
Definition Unknown.cpp:28
UnknownArgument(const std::string &argument="")
Construct a new Unknown Argument object.
Definition Unknown.cpp:19
const char * what() const noexcept
Retrieves the error message.
Definition Unknown.cpp:30