libdonut 2.3.6
Application framework for cross-platform game development in C++20
Loading...
Searching...
No Matches
Error.hpp
Go to the documentation of this file.
1#ifndef DONUT_GRAPHICS_ERROR_HPP
2#define DONUT_GRAPHICS_ERROR_HPP
3
4#include <stdexcept> // std::runtime_error
5#include <string> // std::string
6
7namespace donut::graphics {
8
13struct Error : std::runtime_error {
14 explicit Error(const std::string& message)
15 : std::runtime_error(message) {}
16
17 explicit Error(const char* message)
18 : std::runtime_error(message) {}
19};
20
21} // namespace donut::graphics
22
23#endif
Definition Buffer.hpp:7
Exception type for domain-specific errors originating from the donut::graphics module.
Definition Error.hpp:13
Error(const std::string &message)
Definition Error.hpp:14
Error(const char *message)
Definition Error.hpp:17