|
pjson 1.0.0
A small, owning JSON value for C++11
|
Structured JSON Pointer (RFC 6901) lookup failure. tokenIndex is zero-based and token is the decoded token that could not be resolved (or the source token when its escape sequence is invalid). std::string reporting overloads reset all fields on entry. A C-string overload can report allocation failure before copying the pointer text.
More...
#include <pjson.h>
Public Types | |
| enum | Code { Ok , InvalidSyntax , InvalidEscape , MissingTarget , ExpectedContainer , InvalidArrayIndex , ArrayIndexOutOfRange , AppendTokenNotAllowed , AllocationFailure , InternalError } |
| Selects one of the public JSON policies. More... | |
Public Member Functions | |
| PointerError () | |
Public API member PointerError; see the API overview for its contract. | |
Public Attributes | |
| bool | ok |
Public API member ok; see the API overview for its contract. | |
| Code | code |
Public API member code; see the API overview for its contract. | |
| std::string | pointer |
Public API member pointer; see the API overview for its contract. | |
| size_t | tokenIndex |
Public API member tokenIndex; see the API overview for its contract. | |
| std::string | token |
Public API member token; see the API overview for its contract. | |
| std::string | message |
Public API member message; see the API overview for its contract. / Constructs a successful lookup state with no pointer or token details. | |
Structured JSON Pointer (RFC 6901) lookup failure. tokenIndex is zero-based and token is the decoded token that could not be resolved (or the source token when its escape sequence is invalid). std::string reporting overloads reset all fields on entry. A C-string overload can report allocation failure before copying the pointer text.
Selects one of the public JSON policies.
| ByteDance::pjson::PointerError::PointerError | ( | ) |
Public API member PointerError; see the API overview for its contract.
| Code ByteDance::pjson::PointerError::code |
| std::string ByteDance::pjson::PointerError::message |
| bool ByteDance::pjson::PointerError::ok |
| std::string ByteDance::pjson::PointerError::pointer |
| std::string ByteDance::pjson::PointerError::token |
| size_t ByteDance::pjson::PointerError::tokenIndex |