metadata 0.2.0
Modern C++23 header-only metadata container (JSON-like)
Loading...
Searching...
No Matches
error.hpp
1#pragma once
2
3#include <stdexcept>
4
5namespace md {
6
7// NOLINTBEGIN(readability-identifier-naming)
9struct error : std::runtime_error {
10 using std::runtime_error::runtime_error;
11};
12
15 using error::error;
16};
17
19struct type_error : error {
20 using error::error;
21};
22// NOLINTEND(readability-identifier-naming)
23
24} // namespace md
Base class for all exceptions thrown by the md library.
Definition error.hpp:9
Thrown when a required key or path is not present in an Object.
Definition error.hpp:14
Thrown when a Value holds a different alternative than the caller demanded.
Definition error.hpp:19