21#ifndef COMMON_WEB_SCHEMAERRORLOGGER_H_
22#define COMMON_WEB_SCHEMAERRORLOGGER_H_
63 std::ostream&
Error();
71 std::ostringstream m_first_error;
72 std::ostringstream m_extra_errors;
An implementation of Json Pointers (RFC 6901).
A JSON pointer (RFC 6901) refers to a possible element in a JSON data structure.
Definition JsonPointer.h:66
The SchemaErrorLogger captures errors while parsing the schema.
Definition SchemaErrorLogger.h:41
std::string ErrorString() const
Return the first error.
Definition SchemaErrorLogger.cpp:33
std::ostream & Error()
Log an error.
Definition SchemaErrorLogger.cpp:37
bool HasError() const
Check if there was an error logged.
Definition SchemaErrorLogger.cpp:29
SchemaErrorLogger(JsonPointer *pointer)
Create a new SchemaErrorLogger.
Definition SchemaErrorLogger.h:47
void Reset()
Clear the saved errors.
Definition SchemaErrorLogger.cpp:46
The namespace containing all OLA symbols.
Definition Credentials.cpp:44