pjson 1.0.0
A small, owning JSON value for C++11
Loading...
Searching...
No Matches
ByteDance::pjson::SchemaError Struct Reference

One schema-validation failure: path is a JSON Pointer to the offending node (e.g. "/address/zip", "" for the document root) and message explains what was wrong. More...

#include <pjson.h>

Public Member Functions

 SchemaError ()
 Public API member SchemaError; see the API overview for its contract. / Constructs an error for aPath with the supplied diagnostic message.
 
 SchemaError (const std::string &aPath, const std::string &aMsg)
 Public API member SchemaError; see the API overview for its contract.
 

Public Attributes

std::string path
 Public API member path; see the API overview for its contract.
 
std::string message
 Public API member message; see the API overview for its contract. / Constructs an error with an empty root path and message.
 

Detailed Description

One schema-validation failure: path is a JSON Pointer to the offending node (e.g. "/address/zip", "" for the document root) and message explains what was wrong.

Definition at line 299 of file pjson.h.

Constructor & Destructor Documentation

◆ SchemaError() [1/2]

ByteDance::pjson::SchemaError::SchemaError ( )

Public API member SchemaError; see the API overview for its contract. / Constructs an error for aPath with the supplied diagnostic message.

◆ SchemaError() [2/2]

ByteDance::pjson::SchemaError::SchemaError ( const std::string &  aPath,
const std::string &  aMsg 
)

Public API member SchemaError; see the API overview for its contract.

Member Data Documentation

◆ message

std::string ByteDance::pjson::SchemaError::message

Public API member message; see the API overview for its contract. / Constructs an error with an empty root path and message.

Definition at line 301 of file pjson.h.

◆ path

std::string ByteDance::pjson::SchemaError::path

Public API member path; see the API overview for its contract.

Definition at line 300 of file pjson.h.


The documentation for this struct was generated from the following file: