1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-25 14:51:16 +02:00

libutil: add C bindings

This commit is contained in:
Yorick van Pelt 2023-07-14 15:52:12 +02:00 committed by José Luis Lafuente
parent c0b6907ccd
commit 4702317506
No known key found for this signature in database
GPG key ID: 8A3455EBE455489A
5 changed files with 437 additions and 1 deletions

View file

@ -137,6 +137,10 @@ public:
: err(e)
{ }
std::string message() {
return err.msg.str();
}
const char * what() const noexcept override { return calcWhat().c_str(); }
const std::string & msg() const { return calcWhat(); }
const ErrorInfo & info() const { calcWhat(); return err; }