aboutsummaryrefslogtreecommitdiff
path: root/src/libutil/error.cc
diff options
context:
space:
mode:
authoreldritch horrors <pennae@lix.systems>2024-03-17 23:52:11 +0100
committereldritch horrors <pennae@lix.systems>2024-03-19 06:09:42 -0600
commitd9a83886f9aed4d61d9d18894637f883491b384b (patch)
treed98087be032d6af63798d19270efa9bc9a46fa9f /src/libutil/error.cc
parent4050245faab80dad6cedaa13e481278456a139c0 (diff)
libutil: remove exception handling workingness check
within lix itself this problem is caught by the test suite. outside of lix itself three cases can be had: either the problem is fully inside lix libs, fully inside user code, or it exists at the boundary. the first is caught by the test suite, the second isn't caught at all, and the third is something lix should not be responsible for. Change-Id: I95aa35d8cb6f0ef5816a2941c467bc0c15916063
Diffstat (limited to 'src/libutil/error.cc')
-rw-r--r--src/libutil/error.cc5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/libutil/error.cc b/src/libutil/error.cc
index d30da58c0..b534ff87e 100644
--- a/src/libutil/error.cc
+++ b/src/libutil/error.cc
@@ -15,11 +15,6 @@ void BaseError::addTrace(std::shared_ptr<Pos> && e, HintFmt hint)
err.traces.push_front(Trace { .pos = std::move(e), .hint = hint });
}
-void throwExceptionSelfCheck(){
- // This is meant to be caught in initLibUtil()
- throw SysError("C++ exception handling is broken. This would appear to be a problem with the way Nix was compiled and/or linked and/or loaded.");
-}
-
// c++ std::exception descendants must have a 'const char* what()' function.
// This stringifies the error and caches it for use by what(), or similarly by msg().
const std::string & BaseError::calcWhat() const