R-Type  2
Doom but in better
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
20
21namespace CustomExceptions
22{
23
30 class HelpFound : public std::exception {
31 public:
35 HelpFound();
40 ~HelpFound();
45 const char *what() const noexcept;
46
47 private:
48 std::string _msg;
49 const char *_buffer;
50 };
51
58 class VersionFound : public std::exception {
59 public:
74 const char *what() const noexcept;
75
76 private:
77 std::string _msg;
78 const char *_buffer;
79 };
80}
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 help flag was found. This is not an error.
Definition Found.hpp:30
~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
This is the class in charge of informing the user that the version flag was found....
Definition Found.hpp:58
~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