add unsupportedMediaTypeException
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user