From e10e37bc20a454829a2f7490cb527e9acb638f34 Mon Sep 17 00:00:00 2001 From: Bruno de Oliveira Abinader Date: Wed, 15 Mar 2017 15:11:01 +0200 Subject: [core] Pass std::exception_ptr in style::Observer::onStyleError --- include/mbgl/util/exception.hpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'include') 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 -- cgit v1.2.1