Structured persistence failure. More...
#include <schema_json.hpp>
Public Member Functions | |
| PersistenceError ()=default | |
| Constructs an InvalidJson error with no source location. | |
| PersistenceError (PersistenceErrorCode error_code, std::size_t offset=0, std::uint64_t observed=0, std::uint64_t maximum=0, std::string error_path={}, std::optional< ModelError > rejected_model={}) | |
| Constructs a structured persistence error from stage-specific details. | |
Public Attributes | |
| PersistenceErrorCode | code = PersistenceErrorCode::InvalidJson |
| Failure category. | |
| std::size_t | byte_offset = 0 |
| Source byte offset, when available. | |
| std::uint64_t | actual = 0 |
| Observed size or count for a quota failure. | |
| std::uint64_t | limit = 0 |
| Configured ceiling for a quota failure. | |
| std::string | path |
| JSON Pointer-like path to the rejected value. | |
| std::optional< ModelError > | model_error |
| Underlying ModelRejected detail. | |
Structured persistence failure.
byte_offset locates syntax/encoding failures in the original input. actual and limit describe quota failures. path is a JSON Pointer-like model path, and model_error carries the underlying model invariant rejection when code is ModelRejected. Fields not applicable to a code remain zero or empty.
|
default |
Constructs an InvalidJson error with no source location.
|
inlineexplicit |
Constructs a structured persistence error from stage-specific details.
| error_code | Failure category. |
| offset | Source byte offset, when applicable. |
| observed | Observed size or count for a quota failure. |
| maximum | Configured ceiling for a quota failure. |
| error_path | JSON Pointer-like diagnostic path. |
| rejected_model | Underlying model failure for ModelRejected. |
| std::uint64_t pulp::timeline::PersistenceError::actual = 0 |
Observed size or count for a quota failure.
| std::size_t pulp::timeline::PersistenceError::byte_offset = 0 |
Source byte offset, when available.
| PersistenceErrorCode pulp::timeline::PersistenceError::code = PersistenceErrorCode::InvalidJson |
Failure category.
| std::uint64_t pulp::timeline::PersistenceError::limit = 0 |
Configured ceiling for a quota failure.
| std::optional<ModelError> pulp::timeline::PersistenceError::model_error |
Underlying ModelRejected detail.
| std::string pulp::timeline::PersistenceError::path |
JSON Pointer-like path to the rejected value.