X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Flibs%2Frdbms%2Fexception%2FDBError.php;h=aad219dd292fe6d3ab3242d53b1e479e62103e24;hb=478a58f63101f2b47d18a618296b5e7970fa3f24;hp=50238003a2f715c55a86117e903f4bb71edb69c6;hpb=395b9c81ffcc11b6a564a26418dad990e1a708d5;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/libs/rdbms/exception/DBError.php b/includes/libs/rdbms/exception/DBError.php index 50238003a2..aad219dd29 100644 --- a/includes/libs/rdbms/exception/DBError.php +++ b/includes/libs/rdbms/exception/DBError.php @@ -35,10 +35,11 @@ class DBError extends RuntimeException { * Construct a database error * @param IDatabase $db Object which threw the error * @param string $error A simple error message to be used for debugging + * @param \Exception|\Throwable|null $prev Previous exception */ - public function __construct( IDatabase $db = null, $error ) { + public function __construct( IDatabase $db = null, $error, $prev = null ) { + parent::__construct( $error, 0, $prev ); $this->db = $db; - parent::__construct( $error ); } }