protected function setMessage($text, $format)
{
if (strlen($text) > 10000) {
throw new InvalidArgumentException('Message more than 10,000 characters');
}
// throw exception if longer than 10,000 chars
$this->message = $text;
$this->message_format = $format;
}