CountMismatchException.h
Go to the documentation of this file.
1 #pragma once
2 
4 #include <swarmio/data/Variant.pb.h>
5 
7 {
14  {
15  private:
16 
21  uint32_t _expectedCount;
22 
27  uint32_t _actualCount;
28 
29  public:
30 
39  CountMismatchException(const char* message, const std::string& location, uint32_t expectedCount, uint32_t actualCount)
40  : SchemaMismatchException(message, location), _expectedCount(expectedCount), _actualCount(actualCount) { }
41 
47  uint32_t expected_count() const
48  {
49  return _expectedCount;
50  }
51 
57  uint32_t actual_count() const
58  {
59  return _actualCount;
60  }
61  };
62 }
uint32_t _actualCount
The actual count of the variant array.
Exception thrown when the count of a fixed array does not match the count of the variant array...
Exception thrown when the schema does not match the variant.
uint32_t actual_count() const
Get the actual count of the variant array.
CountMismatchException(const char *message, const std::string &location, uint32_t expectedCount, uint32_t actualCount)
Constructor.
uint32_t expected_count() const
Get the expected count of the variant array.
const char * location() const
Get the location of the mismatch.
uint32_t _expectedCount
The expected count of the variant array.


swarmros
Author(s):
autogenerated on Fri Apr 3 2020 03:42:47