summaryrefslogtreecommitdiff
path: root/include/mbgl/util/exception.hpp
diff options
context:
space:
mode:
authorThiago Marcos P. Santos <thiago@mapbox.com>2015-05-19 01:42:13 +0300
committerThiago Marcos P. Santos <thiago@mapbox.com>2015-05-22 10:44:18 +0300
commit90fd06762c17eeb71eed69632045ae3db9f6e322 (patch)
tree7da9e4268a72cd3784f1beed80fb633204960bd3 /include/mbgl/util/exception.hpp
parentda81211feaffd89319330774b61b261b939dde33 (diff)
downloadqtlocation-mapboxgl-90fd06762c17eeb71eed69632045ae3db9f6e322.tar.gz
Notify failures when loading the source JSON
Diffstat (limited to 'include/mbgl/util/exception.hpp')
-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 0b4403270c..050e56da38 100644
--- a/include/mbgl/util/exception.hpp
+++ b/include/mbgl/util/exception.hpp
@@ -21,6 +21,11 @@ struct ShaderException : Exception {
inline ShaderException(const std::string &msg) : Exception(msg) {}
};
+struct SourceLoadingException : Exception {
+ inline SourceLoadingException(const char *msg) : Exception(msg) {}
+ inline SourceLoadingException(const std::string &msg) : Exception(msg) {}
+};
+
}
}