めんどくさくなったから一括でコミットするけど許してくれ

This commit is contained in:
keita
2021-02-23 16:37:15 +09:00
parent 5cebef5d9c
commit b4497728b1
18 changed files with 148 additions and 52 deletions
@@ -3,10 +3,10 @@
#include <cocoatweet/exception/exception.h>
namespace CocoaTweet::Exception{
class AuthenticateException final: Exception{
using Exception::Exception;
};
}
namespace CocoaTweet::Exception {
class AuthenticateException final : Exception {
using Exception::Exception;
};
} // namespace CocoaTweet::Exception
#endif
+12 -9
View File
@@ -4,15 +4,18 @@
#include <string>
#include <exception>
namespace CocoaTweet::Exception{
class Exception: public std::exception{
public:
Exception(const char* _msg):msg_(std::string(_msg)){}
const std::string& what(){return msg_;}
virtual ~Exception() = default;
protected:
std::string msg_;
namespace CocoaTweet::Exception {
class Exception : public std::exception {
public:
Exception(const char* _msg) : msg_(std::string(_msg)) {}
const std::string& what() {
return msg_;
}
virtual ~Exception() = default;
protected:
std::string msg_;
};
}
} // namespace CocoaTweet::Exception
#endif
@@ -3,10 +3,10 @@
#include <cocoatweet/exception/exception.h>
namespace CocoaTweet::Exception{
class RateLimitException final: Exception{
using Exception::Exception;
};
}
namespace CocoaTweet::Exception {
class RateLimitException final : Exception {
using Exception::Exception;
};
} // namespace CocoaTweet::Exception
#endif
@@ -3,10 +3,10 @@
#include <cocoatweet/exception/exception.h>
namespace CocoaTweet::Exception{
class TweetDuplicateException final: Exception{
using Exception::Exception;
};
}
namespace CocoaTweet::Exception {
class TweetDuplicateException final : Exception {
using Exception::Exception;
};
} // namespace CocoaTweet::Exception
#endif
@@ -3,10 +3,10 @@
#include <cocoatweet/exception/exception.h>
namespace CocoaTweet::Exception{
class TweetNotFoundException final: Exception{
using Exception::Exception;
};
}
namespace CocoaTweet::Exception {
class TweetNotFoundException final : Exception {
using Exception::Exception;
};
} // namespace CocoaTweet::Exception
#endif
@@ -3,10 +3,10 @@
#include <cocoatweet/exception/exception.h>
namespace CocoaTweet::Exception{
class TweetTooLongException final: Exception{
using Exception::Exception;
};
}
namespace CocoaTweet::Exception {
class TweetTooLongException final : Exception {
using Exception::Exception;
};
} // namespace CocoaTweet::Exception
#endif