An error page which can definitely be safely rendered using the OutputPage.
report( $action=self::SEND_OUTPUT)
Stable to override.
getMessageObject()
Return a Message object for this exception.
__construct( $title, $msg, $params=[])
Note: these arguments are keys into wfMessage(), not text!