summaryrefslogtreecommitdiff
path: root/include/mbgl/util
diff options
context:
space:
mode:
authorThiago Marcos P. Santos <thiago@mapbox.com>2015-05-19 00:38:10 +0300
committerThiago Marcos P. Santos <thiago@mapbox.com>2015-05-22 10:44:18 +0300
commitee9b172152c7e462f2c204ea7b85c3cc4bd04582 (patch)
treea28556dcb66e64ee43f373743934b91650586049 /include/mbgl/util
parentac64bef87f5c0b3d23be59de984fd93eb7f2378f (diff)
downloadqtlocation-mapboxgl-ee9b172152c7e462f2c204ea7b85c3cc4bd04582.tar.gz
Notify failures when loading glyphs
Diffstat (limited to 'include/mbgl/util')
-rw-r--r--include/mbgl/util/exception.hpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/mbgl/util/exception.hpp b/include/mbgl/util/exception.hpp
index 7ef8ea9762..da61aa482a 100644
--- a/include/mbgl/util/exception.hpp
+++ b/include/mbgl/util/exception.hpp
@@ -11,6 +11,11 @@ struct Exception : std::runtime_error {
inline Exception(const std::string &msg) : std::runtime_error(msg) {}
};
+struct GlyphRangeLoadingException : Exception {
+ inline GlyphRangeLoadingException(const char *msg) : Exception(msg) {}
+ inline GlyphRangeLoadingException(const std::string &msg) : Exception(msg) {}
+};
+
struct MisuseException : Exception {
inline MisuseException(const char *msg) : Exception(msg) {}
inline MisuseException(const std::string &msg) : Exception(msg) {}