Tidying
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
#pragma once
|
||||
|
||||
#include <stdexcept>
|
||||
|
||||
namespace Bloom::Exceptions
|
||||
{
|
||||
class Exception: public std::runtime_error
|
||||
@@ -9,13 +10,13 @@ namespace Bloom::Exceptions
|
||||
std::string message;
|
||||
|
||||
public:
|
||||
explicit Exception() : std::runtime_error("") {}
|
||||
explicit Exception(): std::runtime_error("") {}
|
||||
|
||||
explicit Exception(const std::string& message) : std::runtime_error(message.c_str()) {
|
||||
explicit Exception(const std::string& message): std::runtime_error(message.c_str()) {
|
||||
this->message = message;
|
||||
}
|
||||
|
||||
explicit Exception(const char* message) : std::runtime_error(message) {
|
||||
explicit Exception(const char* message): std::runtime_error(message) {
|
||||
this->message = std::string(message);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user