Babel  1
The voip software that only works on your local network
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{
25 class FileNotFound : public std::exception {
26 public:
32 FileNotFound(const std::string &error = "");
41 const char *what() const noexcept;
42
43 private:
44 std::string _msg;
45 const char *_buffer;
46 };
47}
Aggregates headers from the Recoded folder.
Exception class for missing files.
Definition NotFound.hpp:25
const char * what() const noexcept
Retrieves the error message.
Definition NotFound.cpp:28
FileNotFound(const std::string &error="")
Construct a new FileNotFound object.
Definition NotFound.cpp:18
~FileNotFound()
Destroy the FileNotFound object.
Definition NotFound.cpp:26