Remove a redundant public section in Yerbacon::Exception and make the second constructor call the first one
This commit is contained in:
parent
f0aeda7c8a
commit
57a01e6c32
|
@ -31,9 +31,8 @@ namespace Yerbacon {
|
||||||
[[nodiscard]] const char* what() const noexcept final {
|
[[nodiscard]] const char* what() const noexcept final {
|
||||||
return exceptionCause.data();
|
return exceptionCause.data();
|
||||||
}
|
}
|
||||||
public:
|
|
||||||
explicit Exception(const std::string_view& cause): exceptionCause(cause) {}
|
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)) {}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue