KiCad PCB EDA Suite
Loading...
Searching...
No Matches
COLLECTING_JSON_ERROR_HANDLER Class Reference

Collects JSON-schema validation errors so the caller can inspect them after a validation pass. More...

#include <remote_provider_utils.h>

Inheritance diagram for COLLECTING_JSON_ERROR_HANDLER:

Public Member Functions

void error (const nlohmann::json::json_pointer &aPointer, const nlohmann::json &aInstance, const std::string &aMessage) override
 
bool HasErrors () const
 
wxString FirstError () const
 

Private Attributes

std::vector< wxString > m_errors
 

Detailed Description

Collects JSON-schema validation errors so the caller can inspect them after a validation pass.

Definition at line 67 of file remote_provider_utils.h.

Member Function Documentation

◆ error()

void COLLECTING_JSON_ERROR_HANDLER::error ( const nlohmann::json::json_pointer & aPointer,
const nlohmann::json & aInstance,
const std::string & aMessage )
override

Definition at line 126 of file remote_provider_utils.cpp.

References m_errors.

◆ FirstError()

wxString COLLECTING_JSON_ERROR_HANDLER::FirstError ( ) const

◆ HasErrors()

bool COLLECTING_JSON_ERROR_HANDLER::HasErrors ( ) const
inline

Member Data Documentation

◆ m_errors

std::vector<wxString> COLLECTING_JSON_ERROR_HANDLER::m_errors
private

Definition at line 77 of file remote_provider_utils.h.

Referenced by error(), FirstError(), and HasErrors().


The documentation for this class was generated from the following files: