4 #include <swarmio/data/Variant.pb.h> TypeMismatchException(const char *message, const std::string &location, swarmio::data::Variant::ValueCase expectedType, swarmio::data::Variant::ValueCase actualType)
Constructor.
swarmio::data::Variant::ValueCase actual_type() const
Get the actual type of the Variant.
Exception thrown when the schema does not match the variant.
swarmio::data::Variant::ValueCase expected_type() const
Get the expected type of the Variant.
Exception thrown when the expected type of the Variant does not match the actual type.
const char * location() const
Get the location of the mismatch.
swarmio::data::Variant::ValueCase _expectedType
The expected type of the variant.
swarmio::data::Variant::ValueCase _actualType
The actual type of the variant.