Adds a message to the WrapperMessage, the first message defines the message type.
If another message of a different type to the first message is added, then an
Exception is thrown.
Declaration Syntax
Parameters
- message (IMessage)
- The message to add to the wrapper
Exceptions
Exception | Condition |
---|---|
Exception | When the message added is a different type to the first one added |