|
pjson 2.0.0
A small, owning JSON value for C++11
|
Structured outcome for the non-throwing serialization APIs. More...
#include <pjson.h>
Public Types | |
| enum | Code { None , InvalidUtf8 , NonFiniteNumber , OutputLimit , AllocationFailure , StreamFailure , InternalError } |
| Stable categories for programmatic serialization failure handling. More... | |
Public Member Functions | |
| void | reset () noexcept |
| Resets the result to success. | |
Public Attributes | |
| Code | code |
| Stable machine-readable result category. | |
| std::string | message |
| Human-readable diagnostic; empty on success. Constructs a successful serialization result. | |
Structured outcome for the non-throwing serialization APIs.
Structured result for non-throwing serialization.
Code distinguishes invalid UTF-8, rejected non-finite numbers, output limits, allocation failure, physical stream failure, and unexpected internal errors. String output is transactional; logical stream failures are detected before emission, while a physical sink failure may leave a prefix.
Stable categories for programmatic serialization failure handling.
|
noexcept |
Resets the result to success.
| Code ByteDance::pjson::SerializeError::code |
| std::string ByteDance::pjson::SerializeError::message |