Notify failures when loading glyphs

This commit is contained in:
Thiago Marcos P. Santos
2015-05-19 00:38:10 +03:00
parent ac64bef87f
commit ee9b172152
5 changed files with 60 additions and 19 deletions

View File

@@ -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) {}