|
Flox Package Database 1
CRUD Operations on Nix Package Metadata
|
Definitions of various std::exception children used for throwing errors with nice messages and typed discrimination.
More...
#include <nix/nixexpr.hh>#include <nlohmann/json.hpp>#include <optional>#include <stdexcept>#include <string>Go to the source code of this file.
Classes | |
| class | flox::FloxException |
| class | flox::NixEvalException |
A nix::EvalError was encountered. More... | |
Namespaces | |
| namespace | flox |
Interfaces for use by flox. | |
Macros | |
| #define | FLOX_DEFINE_EXCEPTION(NAME, ERROR_CODE, CATEGORY_MSG) |
| Generate a class definition with an error code and category message. | |
Functions | |
| void | flox::to_json (nlohmann::json &jto, const FloxException &err) |
| Convert a flox::FloxException to a JSON object. | |
Definitions of various std::exception children used for throwing errors with nice messages and typed discrimination.
| #define FLOX_DEFINE_EXCEPTION | ( | NAME, | |
| ERROR_CODE, | |||
| CATEGORY_MSG | |||
| ) |
Generate a class definition with an error code and category message.
The resulting class will have NAME(), NAME( contextMsg ), and NAME( contextMsg, caughtMsg ) constructors available.