MediaWiki REL1_34
DBConnectionError.php
Go to the documentation of this file.
1<?php
21namespace Wikimedia\Rdbms;
22
31 public function __construct( IDatabase $db = null, $error = 'unknown error' ) {
32 $msg = 'Cannot access the database';
33 if ( trim( $error ) != '' ) {
34 $msg .= ": $error";
35 }
36
37 parent::__construct( $db, $msg );
38 }
39}
40
44class_alias( DBConnectionError::class, 'DBConnectionError' );
__construct(IDatabase $db=null, $error='unknown error')
IDatabase null $db
Definition DBError.php:32
Base class for the more common types of database errors.
Basic database interface for live and lazy-loaded relation database handles.
Definition IDatabase.php:38