Reflection for RapidJSON  0.0.15
Reflection for serializing/deserializing with RapidJSON
Classes | Namespaces | Enumerations | Functions
errorhandling.h File Reference

Contains helper for error handling when deserializing JSON files. More...

#include <c++utilities/misc/traits.h>
#include <rapidjson/rapidjson.h>
#include <cstdint>
#include <limits>
#include <list>
#include <string>
#include <vector>
Include dependency graph for errorhandling.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  ReflectiveRapidJSON::JsonDeserializationError
 The JsonDeserializationError struct describes any errors of fromJson() except such caused by invalid JSON. More...
 
struct  ReflectiveRapidJSON::JsonDeserializationErrors
 The JsonDeserializationErrors struct can be passed to fromJson() for error handling. More...
 

Namespaces

 ReflectiveRapidJSON
 

Enumerations

enum  ReflectiveRapidJSON::JsonDeserializationErrorKind : std::uint8_t {
  ReflectiveRapidJSON::JsonDeserializationErrorKind::TypeMismatch, ReflectiveRapidJSON::JsonDeserializationErrorKind::ArraySizeMismatch, ReflectiveRapidJSON::JsonDeserializationErrorKind::ConversionError, ReflectiveRapidJSON::JsonDeserializationErrorKind::UnexpectedDuplicate,
  ReflectiveRapidJSON::JsonDeserializationErrorKind::InvalidVariantObject, ReflectiveRapidJSON::JsonDeserializationErrorKind::InvalidVariantIndex
}
 The JsonDeserializationErrorKind enum specifies which kind of error happend when populating variables from parsing results. More...
 
enum  ReflectiveRapidJSON::JsonType : std::uint8_t {
  ReflectiveRapidJSON::JsonType::Null, ReflectiveRapidJSON::JsonType::Number, ReflectiveRapidJSON::JsonType::Bool, ReflectiveRapidJSON::JsonType::String,
  ReflectiveRapidJSON::JsonType::Array, ReflectiveRapidJSON::JsonType::Object
}
 The JsonType enum specifies the JSON data type. More...
 

Functions

template<typename Type , Traits::EnableIf< Traits::Not< std::is_same< Type, bool >>, Traits::Any< std::is_integral< Type >, std::is_floating_point< Type >>> * = nullptr>
constexpr JsonType ReflectiveRapidJSON::jsonType ()
 
constexpr JsonType ReflectiveRapidJSON::jsonType (RAPIDJSON_NAMESPACE::Type type)
 Maps the type info provided by RapidJSON to JsonType. More...
 
constexpr JsonDeserializationErrors::ThrowOn ReflectiveRapidJSON::operator| (JsonDeserializationErrors::ThrowOn lhs, JsonDeserializationErrors::ThrowOn rhs)
 Combines to ThrowOn values. More...
 

Detailed Description

Contains helper for error handling when deserializing JSON files.

Definition in file errorhandling.h.