Public Member Functions | Private Attributes | List of all members
swarmros::introspection::CountMismatchException Class Reference

Exception thrown when the count of a fixed array does not match the count of the variant array. More...

#include <CountMismatchException.h>

Inheritance diagram for swarmros::introspection::CountMismatchException:
Inheritance graph
[legend]

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...
 

Detailed Description

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.

Constructor & Destructor Documentation

swarmros::introspection::CountMismatchException::CountMismatchException ( const char *  message,
const std::string &  location,
uint32_t  expectedCount,
uint32_t  actualCount 
)
inline

Constructor.

Parameters
messageMessage
locationLocation
expectedCountExpected variant array count
actualCountActual variant array count

Definition at line 39 of file CountMismatchException.h.

Member Function Documentation

uint32_t swarmros::introspection::CountMismatchException::actual_count ( ) const
inline

Get the actual count of the variant array.

Returns
uint32_t

Definition at line 57 of file CountMismatchException.h.

uint32_t swarmros::introspection::CountMismatchException::expected_count ( ) const
inline

Get the expected count of the variant array.

Returns
uint32_t

Definition at line 47 of file CountMismatchException.h.

Member Data Documentation

uint32_t swarmros::introspection::CountMismatchException::_actualCount
private

The actual count of the variant array.

Definition at line 27 of file CountMismatchException.h.

uint32_t swarmros::introspection::CountMismatchException::_expectedCount
private

The expected count of the variant array.

Definition at line 21 of file CountMismatchException.h.


The documentation for this class was generated from the following file:


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