Constructs a Text instance with a message generated from the given exception.
The message is built using the exception's class name and its message.
The exception from which to generate the message.