add unsupportedMediaTypeException

This commit is contained in:
keita
2021-03-14 00:58:29 +09:00
parent bc1debe5fe
commit f35598c8ae
4 changed files with 22 additions and 5 deletions
+1
View File
@@ -8,6 +8,7 @@ namespace CocoaTweet::Exception {
class Exception : public std::exception {
public:
Exception(const char* _msg) : msg_(std::string(_msg)) {}
Exception(const std::string& _msg) : msg_(std::string(_msg)) {}
const std::string& what() {
return msg_;
}
@@ -0,0 +1,12 @@
#ifndef COCOATWEET_EXCEPTION_UNSUPPORTEDMEDIATYPEEXCEPTION_H_
#define COCOATWEET_EXCEPTION_UNSUPPORTEDMEDIATYPEEXCEPTION_H_
#include <cocoatweet/exception/exception.h>
namespace CocoaTweet::Exception {
class UnsupportedMediaTypeException final : Exception {
using Exception::Exception;
};
} // namespace CocoaTweet::Exception
#endif