R-Type  2
Doom but in better
Loading...
Searching...
No Matches
NotFound.hpp
Go to the documentation of this file.
1/*
2** EPITECH PROJECT, 2024
3** rtype (Workspace)
4** File description:
5** NotFound.hpp
6*/
7
14#pragma once
15#include <string>
16#include <exception>
17
18#include "Recoded.hpp"
19
20namespace CustomExceptions
21{
27 class FileNotFound : public std::exception {
28 public:
34 FileNotFound(const std::string &error = "");
43 const char *what() const noexcept;
44
45 private:
46 std::string _msg;
47 const char *_buffer;
48 };
49}
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 provided file path could not be found.
Definition NotFound.hpp:27
const char * what() const noexcept
Retrieves the error message.
Definition NotFound.cpp:28
FileNotFound(const std::string &error="")
Construct a new File Not Found object.
Definition NotFound.cpp:18
~FileNotFound()
Destroy the File Not Found object.
Definition NotFound.cpp:26