blob: 46de8528c7d5cae4dd077380e2a773ce0d44ba5e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#pragma once
#include <stdexcept>
namespace mbgl {
namespace util {
struct Exception : std::runtime_error {
Exception(const char *msg) : std::runtime_error(msg) {}
Exception(const std::string &msg) : std::runtime_error(msg) {}
};
struct SpriteImageException : Exception {
SpriteImageException(const char *msg) : Exception(msg) {}
SpriteImageException(const std::string &msg) : Exception(msg) {}
};
struct MisuseException : Exception {
MisuseException(const char *msg) : Exception(msg) {}
MisuseException(const std::string &msg) : Exception(msg) {}
};
} // namespace util
} // namespace mbgl
|