MediaWiki master
FatalError.php
Go to the documentation of this file.
1<?php
21namespace MediaWiki\Exception;
22
39class FatalError extends MWException {
40
47 public function getHTML() {
48 return $this->getMessage();
49 }
50
54 public function getText() {
55 return $this->getMessage();
56 }
57}
58
60class_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.