|
NGen
|
Categorized error carried on every abstract-backend method's expected<> error arm.
More...
#include <record_backend.hpp>
Collaboration diagram for ngen::serialization::BackendError:Public Types | |
| enum class | Kind { NotFound , Corrupted , IOError } |
Public Member Functions | |
| BackendError ()=default | |
| BackendError (Kind k, std::string m) | |
Public Attributes | |
| Kind | kind |
| std::string | message |
Categorized error carried on every abstract-backend method's expected<> error arm.
Callers branch on kind (NotFound / Corrupted / IOError) without parsing message; concrete backends translate their native error sources into this small vocabulary. See the README ("Error categorization" + "Writing a new
`RecordBackend`") for the extension rule.
|
strong |
|
default |
|
inline |
| Kind ngen::serialization::BackendError::kind |
| std::string ngen::serialization::BackendError::message |