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
7
namespace
Input
{
8
26
class
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
Input::InputError::what
const char * what() const override
Definition
InputError.hpp:30
Input::InputError::msg
std::string msg
Definition
InputError.hpp:33
Input::InputError::InputError
InputError(const std::string &message)
Definition
InputError.hpp:28
Input
Definition
InputError.hpp:7
src
plugin
input
src
exception
InputError.hpp
Generated by
1.16.1