summaryrefslogtreecommitdiff
path: root/include/mbgl/util
diff options
context:
space:
mode:
authorThiago Marcos P. Santos <thiago@mapbox.com>2015-05-19 00:12:34 +0300
committerThiago Marcos P. Santos <thiago@mapbox.com>2015-05-22 10:44:18 +0300
commit7274d2e195b419babbc8c10e99af4f6d7803195f (patch)
treee5d003958fa84bc50f45d192a28658f8ef6e16dd /include/mbgl/util
parent90fd06762c17eeb71eed69632045ae3db9f6e322 (diff)
downloadqtlocation-mapboxgl-7274d2e195b419babbc8c10e99af4f6d7803195f.tar.gz
Notify failures when loading the sprite JSON and image
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 050e56da38..dd0199d4e3 100644
--- a/include/mbgl/util/exception.hpp
+++ b/include/mbgl/util/exception.hpp
@@ -26,6 +26,11 @@ struct SourceLoadingException : Exception {
inline SourceLoadingException(const std::string &msg) : Exception(msg) {}
};
+struct SpriteLoadingException : Exception {
+ inline SpriteLoadingException(const char *msg) : Exception(msg) {}
+ inline SpriteLoadingException(const std::string &msg) : Exception(msg) {}
+};
+
}
}