]> git.openstreetmap.org Git - nominatim.git/blobdiff - lib-php/DatabaseError.php
bdd: move import tests from scenes to grid descriptions
[nominatim.git] / lib-php / DatabaseError.php
index 3a53bc8ffd6f3fc4eed698d343da731a484e21d3..68f1efe6fdfa5b69d28842ed58f6060722ce8026 100644 (file)
@@ -1,11 +1,19 @@
 <?php
 <?php
+/**
+ * SPDX-License-Identifier: GPL-2.0-only
+ *
+ * This file is part of Nominatim. (https://nominatim.org)
+ *
+ * Copyright (C) 2022 by the Nominatim developer community.
+ * For a full list of authors see the git log.
+ */
 
 namespace Nominatim;
 
 class DatabaseError extends \Exception
 {
 
 
 namespace Nominatim;
 
 class DatabaseError extends \Exception
 {
 
-    public function __construct($message, $code = 500, Exception $previous = null, $oPDOErr, $sSql = null)
+    public function __construct($message, $code, $previous, $oPDOErr, $sSql = null)
     {
         parent::__construct($message, $code, $previous);
         // https://secure.php.net/manual/en/class.pdoexception.php
     {
         parent::__construct($message, $code, $previous);
         // https://secure.php.net/manual/en/class.pdoexception.php