Nix 2.36.0
Nix, the purely functional package manager; unstable internal interfaces
Loading...
Searching...
No Matches
nix::Error Class Reference
Inheritance diagram for nix::Error:
nix::CloneableError< Error, BaseError > nix::BaseError nix::CloneableError< BadNixStringContextElem, Error > nix::CloneableError< BuildEnvFileConflictError, Error > nix::CloneableError< BuildError, Error > nix::CloneableError< EvalBaseError, Error > nix::CloneableError< ExecError, Error > nix::CloneableError< FileTransferError, Error > nix::CloneableError< InvalidSSHAuthority, Error > nix::CloneableError< MissingExperimentalFeature, Error > nix::CloneableError< MissingRealisation, Error > nix::CloneableError< ParseError, Error > nix::CloneableError< SQLiteError, Error > nix::CloneableError< SymlinkNotAllowed, Error > nix::CloneableError< SystemError, Error > nix::CloneableError< UnimplementedError, Error > nix::CloneableError< UsageError, Error >

Additional Inherited Members

Public Member Functions inherited from nix::CloneableError< Error, BaseError >
void throwClone () const override
Public Member Functions inherited from nix::BaseError
 BaseError (const BaseError &)=default
BaseError & operator= (const BaseError &)=default
BaseError & operator= (BaseError &&) noexcept=default
template<typename... Args>
 BaseError (unsigned int status, Args &&... args)
template<typename... Args>
 BaseError (const std::string &fs, Args &&... args)
template<typename... Args>
 BaseError (const Suggestions &sug, Args &&... args)
 BaseError (HintFmt hint)
 BaseError (ErrorInfo &&e)
 BaseError (const ErrorInfo &e)
std::string message () const
const char * what () const noexcept override
const std::string & msg () const
const ErrorInfo & info () const
void withExitStatus (unsigned int status)
void atPos (std::shared_ptr< const Pos > pos)
bool hasPos () const
void pushTrace (Trace trace)
template<typename... Args>
void addTrace (std::shared_ptr< const Pos > &&pos, std::string_view fs, Args &&... args)
void addTrace (std::shared_ptr< const Pos > &&pos, HintFmt hint, TracePrint print=TracePrint::Default)
bool hasTrace () const
ErrorInfo & unsafeInfo ()
void recalcWhat () const
Protected Member Functions inherited from nix::BaseError
const std::string & calcWhat () const
Protected Attributes inherited from nix::BaseError
ErrorInfo err
std::optional< std::string > what_

The documentation for this class was generated from the following files:
  • libutil/include/nix/util/error.hh
  • libutil/error.cc