blob: ad6827c04c44142d47df728607de5b7bf599feb3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#pragma once
#include "cru/common/pre_config.hpp"
#include <stdexcept>
namespace cru::platform {
class PlatformException : public std::runtime_error {
public:
using runtime_error::runtime_error; // inherit constructors
};
// This exception is throwed when a resource has been disposed and not usable
// again.
// For example, calling Build twice on a GeometryBuilder::Build will lead to this
// exception.
class ReuseException : public std::runtime_error {
public:
using runtime_error::runtime_error; // inherit constructors
};
} // namespace cru::platform
|