MediaWiki  master
InstallException.php
Go to the documentation of this file.
1 <?php
21 namespace MediaWiki\Installer;
22 
23 use Throwable;
24 
33  private $status;
34 
41  public function __construct( \Status $status, $message = '', $code = 0,
42  Throwable $previous = null ) {
43  parent::__construct( $message, $code, $previous );
44  $this->status = $status;
45  }
46 
47  public function getStatus(): \Status {
48  return $this->status;
49  }
50 }
MediaWiki\Installer\InstallException\$status
Status $status
State when an exception occurs.
Definition: InstallException.php:33
MediaWiki\Installer
Status
Generic operation result class Has warning/error list, boolean status and arbitrary value.
Definition: Status.php:44
MWException
MediaWiki exception.
Definition: MWException.php:29
MediaWiki\Installer\InstallException\getStatus
getStatus()
Definition: InstallException.php:47
MediaWiki\Installer\InstallException
Exception thrown if an error occur which installation.
Definition: InstallException.php:29
MediaWiki\Installer\InstallException\__construct
__construct(\Status $status, $message='', $code=0, Throwable $previous=null)
Definition: InstallException.php:41