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

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
+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