diff options
author | Bruno de Oliveira Abinader <bruno@mapbox.com> | 2017-03-15 15:11:01 +0200 |
---|---|---|
committer | Bruno de Oliveira Abinader <bruno@mapbox.com> | 2017-03-17 11:25:48 +0200 |
commit | e10e37bc20a454829a2f7490cb527e9acb638f34 (patch) | |
tree | 420e53958112c44ce0cddfefdd46154a778c3a33 /include | |
parent | 271558744921b5845777decad00756b895d9c485 (diff) | |
download | qtlocation-mapboxgl-e10e37bc20a454829a2f7490cb527e9acb638f34.tar.gz |
[core] Pass std::exception_ptr in style::Observer::onStyleError
Diffstat (limited to 'include')
-rw-r--r-- | include/mbgl/util/exception.hpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/include/mbgl/util/exception.hpp b/include/mbgl/util/exception.hpp index 46de8528c7..a9804e96c5 100644 --- a/include/mbgl/util/exception.hpp +++ b/include/mbgl/util/exception.hpp @@ -20,5 +20,20 @@ struct MisuseException : Exception { 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 |