MNX Document Model
|
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 | |
All the information about a specific error.
|
inline |
Converts the error to a string. (Matches the schema validator's default message.)
indent | The number of indents in the output message. Omit for none. |