Tidying
This commit is contained in:
@@ -7,7 +7,10 @@ namespace Bloom::Exceptions
|
||||
class Exception: public std::runtime_error
|
||||
{
|
||||
public:
|
||||
explicit Exception(): std::runtime_error("") {}
|
||||
explicit Exception()
|
||||
: std::runtime_error("")
|
||||
{}
|
||||
|
||||
virtual ~Exception() = default;
|
||||
|
||||
Exception(const Exception& other) noexcept = default;
|
||||
@@ -16,9 +19,15 @@ namespace Bloom::Exceptions
|
||||
Exception& operator = (const Exception& other) = default;
|
||||
Exception& operator = (Exception&& other) = default;
|
||||
|
||||
explicit Exception(const std::string& message): std::runtime_error(message.c_str()), message(message) {}
|
||||
explicit Exception(const std::string& message)
|
||||
: std::runtime_error(message.c_str())
|
||||
, message(message)
|
||||
{}
|
||||
|
||||
explicit Exception(const char* message): std::runtime_error(message), message(std::string(message)) {}
|
||||
explicit Exception(const char* message)
|
||||
: std::runtime_error(message)
|
||||
, message(std::string(message))
|
||||
{}
|
||||
|
||||
const char* what() const noexcept override {
|
||||
return this->message.c_str();
|
||||
|
||||
Reference in New Issue
Block a user