mirror of
https://github.com/NixOS/nix
synced 2025-06-27 00:11:17 +02:00
errorinfo constructor test
This commit is contained in:
parent
2d0f766a77
commit
39ff80d031
4 changed files with 16 additions and 5 deletions
|
@ -23,6 +23,16 @@ int main()
|
|||
logger->logEI(e.info());
|
||||
}
|
||||
|
||||
|
||||
// ErrorInfo constructor
|
||||
try {
|
||||
auto e = Error("generic error");
|
||||
throw DemoError(e.info());
|
||||
} catch (Error &e) {
|
||||
logger->logEI(e.info());
|
||||
}
|
||||
|
||||
|
||||
// For completeness sake, info through vomit levels.
|
||||
// But this is maybe a heavy format for those.
|
||||
logger->logEI(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue