1 #ifndef TAGSMODELEXCEPTION_H_
2 #define TAGSMODELEXCEPTION_H_
3 
4 #include "common/String.h"
5 #include <exception>
6 
7 class TagsModelException : public std::exception {
8 	ByteString message;
9 public:
TagsModelException(String message)10 	TagsModelException(String message): message(message.ToUtf8()) {};
what()11 	const char * what() const throw() override { return message.c_str(); };
throw()12 	~TagsModelException() throw() {};
13 };
14 
15 #endif /* TAGSMODELEXCEPTION_H_ */
16