diff --git a/src/headers/Yerbacon.hpp b/src/headers/Yerbacon.hpp index 4be8a6f..aca5457 100644 --- a/src/headers/Yerbacon.hpp +++ b/src/headers/Yerbacon.hpp @@ -31,9 +31,8 @@ namespace Yerbacon { [[nodiscard]] const char* what() const noexcept final { return exceptionCause.data(); } - public: explicit Exception(const std::string_view& cause): exceptionCause(cause) {} - Exception(const std::string_view& cause, unsigned long line): exceptionCause(('L' + std::to_string(line) + ": ").append(cause)) {} + Exception(const std::string_view& cause, unsigned long line): Exception(('L' + std::to_string(line) + ": ").append(cause)) {} }; }