From ee9b172152c7e462f2c204ea7b85c3cc4bd04582 Mon Sep 17 00:00:00 2001 From: "Thiago Marcos P. Santos" Date: Tue, 19 May 2015 00:38:10 +0300 Subject: Notify failures when loading glyphs --- include/mbgl/util/exception.hpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include/mbgl/util/exception.hpp') 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) {} -- cgit v1.2.1