blob: f0d7c64f42e35cd2bcc2e82795acb572843e9fa6 (
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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
#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 StyleImageException : Exception {
StyleImageException(const char *msg) : Exception(msg) {}
StyleImageException(const std::string &msg) : Exception(msg) {}
};
struct MisuseException : Exception {
MisuseException(const char *msg) : Exception(msg) {}
MisuseException(const std::string &msg) : Exception(msg) {}
};
struct StyleParseException : Exception {
StyleParseException(const char *msg) : Exception(msg) {}
StyleParseException(const std::string &msg) : Exception(msg) {}
};
struct StyleLoadException : Exception {
StyleLoadException(const char *msg) : Exception(msg) {}
StyleLoadException(const std::string &msg) : Exception(msg) {}
};
struct NotFoundException : Exception {
NotFoundException(const char *msg) : Exception(msg) {}
NotFoundException(const std::string &msg) : Exception(msg) {}
};
} // namespace util
} // namespace mbgl
|