gdk-graphics
0b051eb9b5c1eaa0658babaa4463dd7a80aa9d2c
Loading...
Searching...
No Matches
include
gdk
graphics_exception.h
1
// © Joseph Cameron - All Rights Reserved
2
3
#ifndef GDK_GFX_EXCEPTION_H
4
#define GDK_GFX_EXCEPTION_H
5
6
#include <gdk/graphics_types.h>
7
8
#include <exception>
9
10
namespace
gdk {
12
class
graphics_exception :
public
std::exception {
13
std::string mWhat =
"gdk::graphics_exception"
;
14
15
public
:
16
virtual
const
char
*what()
const
noexcept
override
{
17
return
mWhat.c_str();
18
}
19
20
graphics_exception() =
default
;
21
22
graphics_exception(std::string aWhat)
23
: mWhat(std::move(aWhat))
24
{}
25
26
virtual
~graphics_exception()
override
=
default
;
27
};
28
}
29
30
#endif
31
Generated by
1.13.2