Writes an object to the stream message.
Exception Type | Condition |
---|---|
MsgException | Thrown when unable to write the value. |
MessageFormatException | Thrown when the object is of an invalid type. |
MessageNotWriteableException | Thrown when the message is read-only. |