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

(synced from 53939a28c6)
This commit is contained in:
2022-02-19 01:43:29 -06:00
parent ef7c459af1
commit 9d28f92072
+5
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;