libdonut
2.3.6
Application framework for cross-platform game development in C++20
Loading...
Searching...
No Matches
include
donut
graphics
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
7
namespace
donut::graphics
{
8
13
struct
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
donut::graphics
Definition
Buffer.hpp:7
donut::graphics::Error
Exception type for domain-specific errors originating from the donut::graphics module.
Definition
Error.hpp:13
donut::graphics::Error::Error
Error(const std::string &message)
Definition
Error.hpp:14
donut::graphics::Error::Error
Error(const char *message)
Definition
Error.hpp:17
Generated by
1.9.8