R-Type  2
Doom but in better
Loading...
Searching...
No Matches
Unknown.hpp
Go to the documentation of this file.
1/*
2** EPITECH PROJECT, 2024
3** rtype (Workspace)
4** File description:
5** Unknown.hpp
6*/
7
14#pragma once
15#include <string>
16#include <exception>
17
18#include "Recoded.hpp"
19
20
21namespace CustomExceptions
22{
23
29 class UnknownArgument : public std::exception {
30 public:
36 UnknownArgument(const std::string &argument = "");
46 const char *what() const noexcept;
47
48 private:
49 std::string _msg;
50 const char *_buffer;
51 };
52}
This is an agglomerator in which all the files from Recoded folder will be included.
This is the class in charge of informing the user that the argument that was provided is not known to...
Definition Unknown.hpp:29
~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