めんどくさくなったから一括でコミットするけど許してくれ
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user