X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Flibs%2Frdbms%2Fexception%2FDBError.php;h=50238003a2f715c55a86117e903f4bb71edb69c6;hb=cd222cc601cdd4a95eb37389afbb503167664b90;hp=d65e2d36bd000fa82c14fe8981f5ede027e13ee9;hpb=37198b7d358963bddec354e17bad696b5ea4c476;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/libs/rdbms/exception/DBError.php b/includes/libs/rdbms/exception/DBError.php index d65e2d36bd..50238003a2 100644 --- a/includes/libs/rdbms/exception/DBError.php +++ b/includes/libs/rdbms/exception/DBError.php @@ -21,13 +21,13 @@ namespace Wikimedia\Rdbms; -use Exception; +use RuntimeException; /** * Database error base class * @ingroup Database */ -class DBError extends Exception { +class DBError extends RuntimeException { /** @var IDatabase|null */ public $db; @@ -36,7 +36,7 @@ class DBError extends Exception { * @param IDatabase $db Object which threw the error * @param string $error A simple error message to be used for debugging */ - function __construct( IDatabase $db = null, $error ) { + public function __construct( IDatabase $db = null, $error ) { $this->db = $db; parent::__construct( $error ); }