Reflection for RapidJSON 0.0.16
Reflection for serializing/deserializing with RapidJSON
|
The JsonDeserializationError struct describes any errors of fromJson() except such caused by invalid JSON. More...
#include <errorhandling.h>
Public Member Functions | |
JsonDeserializationError (JsonDeserializationErrorKind kind, JsonType expectedType, JsonType actualType, const char *record, const char *member=nullptr, std::size_t index=noIndex) | |
Constructs a new JsonDeserializationError. | |
Public Attributes | |
JsonDeserializationErrorKind | kind |
Which kind of error occurred. | |
JsonType | expectedType |
The expected type (might not be relevant for all error kinds). | |
JsonType | actualType |
The actual type (might not be relevant for all error kinds). | |
const char * | record |
The name of the class or struct which was being processed when the error was ascertained. | |
const char * | member |
The name of the member which was being processed when the error was ascertained. | |
std::size_t | index |
The index in the array which was being processed when the error was ascertained. | |
Static Public Attributes | |
static constexpr std::size_t | noIndex = std::numeric_limits<std::size_t>::max() |
Indicates no array was being processed when the error occurred. | |
The JsonDeserializationError struct describes any errors of fromJson() except such caused by invalid JSON.
Definition at line 109 of file errorhandling.h.
|
inline |
Constructs a new JsonDeserializationError.
Definition at line 134 of file errorhandling.h.
JsonType ReflectiveRapidJSON::JsonDeserializationError::actualType |
The actual type (might not be relevant for all error kinds).
Definition at line 118 of file errorhandling.h.
JsonType ReflectiveRapidJSON::JsonDeserializationError::expectedType |
The expected type (might not be relevant for all error kinds).
Definition at line 116 of file errorhandling.h.
std::size_t ReflectiveRapidJSON::JsonDeserializationError::index |
The index in the array which was being processed when the error was ascertained.
Definition at line 124 of file errorhandling.h.
JsonDeserializationErrorKind ReflectiveRapidJSON::JsonDeserializationError::kind |
Which kind of error occurred.
Definition at line 114 of file errorhandling.h.
const char* ReflectiveRapidJSON::JsonDeserializationError::member |
The name of the member which was being processed when the error was ascertained.
Definition at line 122 of file errorhandling.h.
|
staticconstexpr |
Indicates no array was being processed when the error occurred.
Definition at line 127 of file errorhandling.h.
const char* ReflectiveRapidJSON::JsonDeserializationError::record |
The name of the class or struct which was being processed when the error was ascertained.
Definition at line 120 of file errorhandling.h.