Error: Add AddPrefix()/AddSuffix()

This commit is contained in:
Stenzek
2024-02-25 18:17:25 +10:00
parent df3517f19b
commit 18ba2032ad
2 changed files with 28 additions and 1 deletions

View File

@ -89,6 +89,11 @@ public:
Error::SetString(errptr, fmt::vformat(fmt, fmt::make_format_args(args...)));
}
void AddPrefix(std::string_view prefix);
void AddSuffix(std::string_view suffix);
static void AddPrefix(Error* errptr, std::string_view prefix);
static void AddSuffix(Error* errptr, std::string_view prefix);
Error& operator=(const Error& e);
Error& operator=(Error&& e);
bool operator==(const Error& e) const;