Public Member Functions | Private Attributes | List of all members
swarmros::bridge::MessageMismatchException Class Reference

Exception thrown when the expected type of a message does not match the actual type. More...

#include <MessageMismatchException.h>

Inheritance diagram for swarmros::bridge::MessageMismatchException:
Inheritance graph
[legend]

Public Member Functions

const char * actual_message () const
 Get the actual message type. More...
 
const char * expected_message () const
 Get the expected message type. More...
 
 MessageMismatchException (const char *message, const std::string &topic, const std::string &expectedMessage, const std::string &actualMessage)
 Constructor. More...
 
const char * topic () const
 Get the actual message type. 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

std::string _actualMessage
 The actual type of the variant. More...
 
std::string _expectedMessage
 The expected type of the variant. More...
 
std::string _topic
 Topic. More...
 

Detailed Description

Exception thrown when the expected type of a message does not match the actual type.

Definition at line 12 of file MessageMismatchException.h.

Constructor & Destructor Documentation

swarmros::bridge::MessageMismatchException::MessageMismatchException ( const char *  message,
const std::string &  topic,
const std::string &  expectedMessage,
const std::string &  actualMessage 
)
inline

Constructor.

Parameters
messageMessage
topicTopic
expectedMessageExpected message type
actualMessageActual message type

Definition at line 44 of file MessageMismatchException.h.

Member Function Documentation

const char* swarmros::bridge::MessageMismatchException::actual_message ( ) const
inline

Get the actual message type.

Returns
const char*

Definition at line 62 of file MessageMismatchException.h.

const char* swarmros::bridge::MessageMismatchException::expected_message ( ) const
inline

Get the expected message type.

Returns
const char*

Definition at line 52 of file MessageMismatchException.h.

const char* swarmros::bridge::MessageMismatchException::topic ( ) const
inline

Get the actual message type.

Returns
const char*

Definition at line 72 of file MessageMismatchException.h.

Member Data Documentation

std::string swarmros::bridge::MessageMismatchException::_actualMessage
private

The actual type of the variant.

Definition at line 32 of file MessageMismatchException.h.

std::string swarmros::bridge::MessageMismatchException::_expectedMessage
private

The expected type of the variant.

Definition at line 26 of file MessageMismatchException.h.

std::string swarmros::bridge::MessageMismatchException::_topic
private

Topic.

Definition at line 20 of file MessageMismatchException.h.


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


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