libvariant
 All Classes Namespaces Files Functions Enumerations Groups
Public Member Functions | List of all members
libvariant::SchemaResult Class Reference

Result class of a schema validation. More...

#include <Variant/Schema.h>

Public Member Functions

void AddError (const ValidationError &err)
 Add a validation error to the result.
 
void AddSchemaError (const SchemaError &err)
 Add a schema error to the result.
 
bool Error () const
 True if any error occured.
 
bool ValidationErrors () const
 True if a validation error occured.
 
bool SchemaErrors () const
 True if a error occured with the schema.
 
const std::vector
< ValidationError > & 
GetErrors () const
 
const std::vector< SchemaError > & GetSchemaErrors () const
 
std::string PrettyPrintMessage () const
 Pritty print any error messages to a string.
 
void PrettyPrintMessage (std::ostream &os, unsigned indent=0) const
 Pritty print any error messages to the std::ostream.
 

Detailed Description

Result class of a schema validation.


The documentation for this class was generated from the following files: