Raytracer
Loading...
Searching...
No Matches
include
exceptions
Base.hpp
1
#include <exception>
2
#include <string>
3
4
#ifndef __BASE_EXCEPTION_HPP__
5
#define __BASE_EXCEPTION_HPP__
6
7
namespace
Raytracer::Exceptions
8
{
9
class
Base
:
public
std::exception {
10
public
:
11
Base
(
const
std::string &message) : _message(message)
12
{
13
}
14
virtual
~Base
() =
default
;
15
16
virtual
const
char
*what()
const
noexcept
override
17
{
18
return
_message.c_str();
19
}
20
21
private
:
22
std::string _message;
23
};
24
}
// namespace Raytracer::Exceptions
25
26
#endif
/* __BASE_EXCEPTION_HPP__ */
Raytracer::Exceptions::Base
Definition
Base.hpp:9
Generated by
1.10.0