Engine²
Open-source game engine written in C++.
Loading...
Searching...
No Matches
InputError.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <cstring>
4#include <stdexcept>
5#include <string>
6
7namespace Input {
8
26class InputError : public std::exception {
27 public:
28 explicit InputError(const std::string &message) : msg("Input error: " + message) {};
29
30 const char *what() const throw() override { return this->msg.c_str(); };
31
32 private:
33 std::string msg;
34};
35
36} // namespace Input
const char * what() const override
Definition InputError.hpp:30
std::string msg
Definition InputError.hpp:33
InputError(const std::string &message)
Definition InputError.hpp:28
Definition InputError.hpp:7