Exception thrown when the count of a fixed array does not match the count of the variant array. More...
#include <CountMismatchException.h>
Public Member Functions | |
uint32_t | actual_count () const |
Get the actual count of the variant array. More... | |
CountMismatchException (const char *message, const std::string &location, uint32_t expectedCount, uint32_t actualCount) | |
Constructor. More... | |
uint32_t | expected_count () const |
Get the expected count of the variant array. More... | |
Public Member Functions inherited from swarmros::introspection::SchemaMismatchException | |
const char * | location () const |
Get the location of the mismatch. More... | |
SchemaMismatchException (const char *message, const std::string &location) | |
Constructor. More... | |
Public Member Functions inherited from swarmio::Exception | |
Exception (const char *message) | |
Construct a new Exception. More... | |
const char * | what () const noexceptoverride |
Get the error message. More... | |
Private Attributes | |
uint32_t | _actualCount |
The actual count of the variant array. More... | |
uint32_t | _expectedCount |
The expected count of the variant array. More... | |
Exception thrown when the count of a fixed array does not match the count of the variant array.
Definition at line 13 of file CountMismatchException.h.
|
inline |
Constructor.
message | Message |
location | Location |
expectedCount | Expected variant array count |
actualCount | Actual variant array count |
Definition at line 39 of file CountMismatchException.h.
|
inline |
Get the actual count of the variant array.
Definition at line 57 of file CountMismatchException.h.
|
inline |
Get the expected count of the variant array.
Definition at line 47 of file CountMismatchException.h.
|
private |
The actual count of the variant array.
Definition at line 27 of file CountMismatchException.h.
|
private |
The expected count of the variant array.
Definition at line 21 of file CountMismatchException.h.