Exception thrown when the expected type of a message does not match the actual type. More...
#include <MessageMismatchException.h>
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... | |
Exception thrown when the expected type of a message does not match the actual type.
Definition at line 12 of file MessageMismatchException.h.
|
inline |
Constructor.
message | Message |
topic | Topic |
expectedMessage | Expected message type |
actualMessage | Actual message type |
Definition at line 44 of file MessageMismatchException.h.
|
inline |
Get the actual message type.
Definition at line 62 of file MessageMismatchException.h.
|
inline |
Get the expected message type.
Definition at line 52 of file MessageMismatchException.h.
|
inline |
Get the actual message type.
Definition at line 72 of file MessageMismatchException.h.
|
private |
The actual type of the variant.
Definition at line 32 of file MessageMismatchException.h.
|
private |
The expected type of the variant.
Definition at line 26 of file MessageMismatchException.h.
|
private |
Topic.
Definition at line 20 of file MessageMismatchException.h.