Nix  2.93.0-dev
Lix: A modern, delicious implementation of the Nix package manager; unstable internal interfaces
Loading...
Searching...
No Matches
nix::EvalErrorBuilder< T > Class Template Reference

Public Member Functions

template<typename... Args>
 EvalErrorBuilder (const PosTable &positions, DebugState *debug, const Args &... args)
 
EvalErrorBuilder< T > withExitStatus (unsigned int exitStatus) &&
 
EvalErrorBuilder< T > atPos (PosIdx pos) &&
 
EvalErrorBuilder< T > atPos (Value &value, PosIdx fallback=noPos) &&
 
EvalErrorBuilder< T > withTrace (PosIdx pos, const std::string_view text) &&
 
EvalErrorBuilder< T > withSuggestions (Suggestions &s) &&
 
EvalErrorBuilder< T > withFrame (const Env &e, const Expr &ex) &&
 
EvalErrorBuilder< T > addTrace (PosIdx pos, HintFmt hint) &&
 
template<typename... Args>
EvalErrorBuilder< T > addTrace (PosIdx pos, std::string_view formatString, const Args &... formatArgs) &&
 
void debugThrow (NeverAsync={}) &&
 
void throw_ () &&
 

Member Function Documentation

◆ debugThrow()

template<class T >
void nix::EvalErrorBuilder< T >::debugThrow ( NeverAsync = {}) &&

Throw the underlying exception, invoking the debug state callback.

◆ throw_()

template<class T >
void nix::EvalErrorBuilder< T >::throw_ ( ) &&

Throw the underlying exception, bypassing the debug state callback.


The documentation for this class was generated from the following files: