getMessageObject()
Return a Message object for this exception.
__construct( $title, $msg, $params=[])
Note: these arguments are keys into wfMessage(), not text!
report()
Output a report about the exception and takes care of formatting.
An error page which can definitely be safely rendered using the OutputPage.