gdk-graphics 0a0aef92e917cfbac53dffbc32c295e4de914093
Loading...
Searching...
No Matches
exception.h
1// © Joseph Cameron - MIT License
2
3#ifndef GDK_GRAPHICS_EXCEPTION_H
4#define GDK_GRAPHICS_EXCEPTION_H
5
6#include <exception>
7#include <string>
8#include <utility>
9
10namespace gdk::graphics {
12 class 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 exception() = default;
21
22 exception(std::string aWhat)
23 : mWhat(std::move(aWhat))
24 {}
25
26 virtual ~exception() override = default;
27 };
28}
29
30#endif