about summary refs log tree commit diff
path: root/src/libexpr/nixexpr.hh
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2007-04-16T15·03+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2007-04-16T15·03+0000
commit5f2492eaecfe8d3451812e894852b1330492e827 (patch)
treeafb46441b5131d6cfddade0be9de64d95ebc2981 /src/libexpr/nixexpr.hh
parent0a8eeea9d8060b9d25891ccc5a9d55e32bf829ba (diff)
* New primop "throw <string>" to throw an error. This is like abort,
  only thrown errors are caught by the top-level derivation evaluation
  in nix-env -qa / -i.

Diffstat (limited to 'src/libexpr/nixexpr.hh')
-rw-r--r--src/libexpr/nixexpr.hh1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libexpr/nixexpr.hh b/src/libexpr/nixexpr.hh
index 420911a8769b..dabbaa323710 100644
--- a/src/libexpr/nixexpr.hh
+++ b/src/libexpr/nixexpr.hh
@@ -12,6 +12,7 @@ namespace nix {
 
 MakeError(EvalError, Error)
 MakeError(AssertionError, EvalError)
+MakeError(ThrownError, AssertionError)
 MakeError(Abort, EvalError)
 MakeError(TypeError, EvalError)