[ox/std] Add const char *toStr(const ox::Error&)

This commit is contained in:
Gary Talent 2022-02-19 01:43:29 -06:00
parent dc2a5039f8
commit 53939a28c6

View File

@ -75,6 +75,11 @@ struct [[nodiscard]] Error {
};
[[nodiscard]]
constexpr auto toStr(const Error &err) noexcept {
return err.msg;
}
struct Exception: public std::exception {
const char *msg = nullptr;
const char *file = nullptr;