textOrThrow

Returns the text content of the message if it's a text message, otherwise throws an exception.