15 using std::runtime_error::runtime_error;
21 using TagValError::TagValError;
29 [[nodiscard]] std::string
message()
const {
30 std::string msg =
"tagval: unknown code '";
32 msg +=
"' for kind '";
Common base exception. Catch this to handle any tagval-thrown error.
Definition error.hpp:13
Thrown by of() when a code is not present.
Definition error.hpp:19
Returned via std::expected from try_of() when a code is not present.
Definition error.hpp:25
std::string code
The attempted code.
Definition error.hpp:26
std::string message() const
Definition error.hpp:29
std::string_view kind_id
The kind it was looked up in.
Definition error.hpp:27