Babel  1
The voip software that only works on your local network
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
20namespace CustomExceptions
21{
22
26 class UnknownArgument : public std::exception {
27 public:
33 UnknownArgument(const std::string &argument = "");
42 const char *what() const noexcept;
43
44 private:
45 std::string _msg;
46 const char *_buffer;
47 };
48}
Aggregates headers from the Recoded folder.
Exception class for unknown arguments.
Definition Unknown.hpp:26
~UnknownArgument()
Destroy the UnknownArgument object.
Definition Unknown.cpp:28
UnknownArgument(const std::string &argument="")
Construct a new UnknownArgument object.
Definition Unknown.cpp:19
const char * what() const noexcept
Retrieves the error message.
Definition Unknown.cpp:30