Flox Package Database 1
CRUD Operations on Nix Package Metadata
Loading...
Searching...
No Matches
Public Member Functions | List of all members
flox::NixEvalException Class Reference

A nix::EvalError was encountered.
More...

#include <exceptions.hh>

Inheritance diagram for flox::NixEvalException:
flox::FloxException

Public Member Functions

 NixEvalException (std::string_view contextMsg, const nix::EvalError &err)
 
error_category getErrorCode () const noexcept override
 
std::string_view getCategoryMessage () const noexcept override
 
- Public Member Functions inherited from flox::FloxException
 FloxException (std::string_view contextMsg)
 Create a generic exception with a custom message.
 
 FloxException (std::string_view contextMsg, std::string_view caughtMsg)
 Create a generic exception with a custom message and information from a child error.
 
 FloxException (std::string_view categoryMsg, std::optional< std::string > contextMsg, std::optional< std::string > caughtMsg)
 Directly initialize a FloxException with a custom category message, (optional) context, and (optional) information from a child error.
 
virtual error_category getErrorCode () const noexcept
 
std::optional< std::string > getContextMessage () const noexcept
 
std::optional< std::string > getCaughtMessage () const noexcept
 
virtual std::string_view getCategoryMessage () const noexcept
 
const char * what () const noexcept override
 Produces an explanatory string about an exception.
 

Detailed Description

A nix::EvalError was encountered.

Member Function Documentation

◆ getCategoryMessage()

std::string_view flox::NixEvalException::getCategoryMessage ( ) const
inlineoverridevirtualnoexcept

Reimplemented from flox::FloxException.

◆ getErrorCode()

error_category flox::NixEvalException::getErrorCode ( ) const
inlineoverridevirtualnoexcept

Reimplemented from flox::FloxException.


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