Open Lighting Architecture
Latest Git
|
The SchemaErrorLogger captures errors while parsing the schema.
The SchemaErrorLogger allows schema parsing errors to be logged. It prepends the error with the value of the JsonPointer so users have a decent idea of where the error occurred in the JSON document.
Public Member Functions | |
SchemaErrorLogger (JsonPointer *pointer) | |
Create a new SchemaErrorLogger. More... | |
bool | HasError () const |
Check if there was an error logged. | |
std::string | ErrorString () const |
Return the first error. More... | |
std::ostream & | Error () |
Log an error. | |
void | Reset () |
Clear the saved errors. | |
|
inlineexplicit |
Create a new SchemaErrorLogger.
pointer | the JsonPointer to use when logging error messages |
std::string ola::web::SchemaErrorLogger::ErrorString | ( | ) | const |
Return the first error.