MediaWiki master
FatalError.php
Go to the documentation of this file.
1<?php
7namespace MediaWiki\Exception;
8
25class FatalError extends MWException {
26
33 public function getHTML() {
34 return $this->getMessage();
35 }
36
40 public function getText() {
41 return $this->getMessage();
42 }
43}
44
46class_alias( FatalError::class, 'FatalError' );
Abort the web request with a custom HTML string that will represent the entire response.
getHTML()
Replace our usual detailed HTML response for uncaught exceptions, with just the bare message as HTML.