MediaWiki
master
FatalError.php
Go to the documentation of this file.
1
<?php
7
namespace
MediaWiki\Exception
;
8
25
class
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
46
class_alias( FatalError::class,
'FatalError'
);
MediaWiki\Exception\FatalError
Abort the web request with a custom HTML string that will represent the entire response.
Definition
FatalError.php:25
MediaWiki\Exception\FatalError\getText
getText()
Definition
FatalError.php:40
MediaWiki\Exception\FatalError\getHTML
getHTML()
Replace our usual detailed HTML response for uncaught exceptions, with just the bare message as HTML.
Definition
FatalError.php:33
MediaWiki\Exception\MWException
MediaWiki exception.
Definition
MWException.php:24
MediaWiki\Exception
Definition
BadRequestError.php:7
includes
Exception
FatalError.php
Generated on Sat Jan 17 2026 22:48:33 for MediaWiki by
1.10.0