MediaWiki REL1_35
DBConnectionError.php
Go to the documentation of this file.
1<?php
21namespace Wikimedia\Rdbms;
22
33 public function __construct( IDatabase $db = null, $error = 'unknown error' ) {
34 $msg = 'Cannot access the database';
35 if ( trim( $error ) != '' ) {
36 $msg .= ": $error";
37 }
38
39 parent::__construct( $db, $msg );
40 }
41}
42
46class_alias( DBConnectionError::class, 'DBConnectionError' );
__construct(IDatabase $db=null, $error='unknown error')
Stable to call.
IDatabase null $db
Definition DBError.php:34
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