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;
79 #endif // COMMON_WEB_SCHEMAERRORLOGGER_H_
std::ostream & Error()
Log an error.
Definition: SchemaErrorLogger.cpp:37
void Reset()
Clear the saved errors.
Definition: SchemaErrorLogger.cpp:46
std::string ErrorString() const
Return the first error.
Definition: SchemaErrorLogger.cpp:33
A JSON pointer (RFC 6901) refers to a possible element in a JSON data structure.
Definition: JsonPointer.h:66
bool HasError() const
Check if there was an error logged.
Definition: SchemaErrorLogger.cpp:29
An implementation of Json Pointers (RFC 6901).
The namespace containing all OLA symbols.
Definition: Credentials.cpp:44
SchemaErrorLogger(JsonPointer *pointer)
Create a new SchemaErrorLogger.
Definition: SchemaErrorLogger.h:47
The SchemaErrorLogger captures errors while parsing the schema.
Definition: SchemaErrorLogger.h:41