MNX Document Model
Loading...
Searching...
No Matches
mnx::validation::ValidationResult::Error Struct Reference

All the information about a specific error. More...

#include <Validation.h>

Public Member Functions

 Error (const json_pointer &ptr, const json &inst, const std::string &msg)
 constructor
 
std::string to_string (int indent=-1) const
 Converts the error to a string. (Matches the schema validator's default message.)
 

Public Attributes

json instance
 instance containing the error
 
json_pointer pointer
 the location of the instance in the top level
 
std::string message
 a message describing the error
 

Detailed Description

All the information about a specific error.

Member Function Documentation

◆ to_string()

std::string mnx::validation::ValidationResult::Error::to_string ( int  indent = -1) const
inline

Converts the error to a string. (Matches the schema validator's default message.)

Parameters
indentThe number of indents in the output message. Omit for none.