diff options
Diffstat (limited to 'lib/public/DB/Exception.php')
-rw-r--r-- | lib/public/DB/Exception.php | 31 |
1 files changed, 10 insertions, 21 deletions
diff --git a/lib/public/DB/Exception.php b/lib/public/DB/Exception.php index d9d11e308d6..6b908382aea 100644 --- a/lib/public/DB/Exception.php +++ b/lib/public/DB/Exception.php @@ -3,25 +3,8 @@ declare(strict_types=1); /** - * @copyright 2021 Christoph Wurst <christoph@winzerhof-wurst.at> - * - * @author Christoph Wurst <christoph@winzerhof-wurst.at> - * - * @license GNU AGPL version 3 or any later version - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see <http://www.gnu.org/licenses/>. - * + * SPDX-FileCopyrightText: 2021 Nextcloud GmbH and Nextcloud contributors + * SPDX-License-Identifier: AGPL-3.0-or-later */ namespace OCP\DB; @@ -39,7 +22,6 @@ use Exception as BaseException; * @since 21.0.0 */ class Exception extends BaseException { - /** * Nextcloud lost connection to the database * @@ -111,7 +93,7 @@ class Exception extends BaseException { public const REASON_NON_UNIQUE_FIELD_NAME = 10; /** - * A not null contraint was violated + * A not null constraint was violated * * @since 21.0.0 */ @@ -139,6 +121,13 @@ class Exception extends BaseException { public const REASON_UNIQUE_CONSTRAINT_VIOLATION = 14; /** + * The lock wait timeout was exceeded + * + * @since 30.0.0 + */ + public const REASON_LOCK_WAIT_TIMEOUT = 15; + + /** * @return int|null * @psalm-return Exception::REASON_* * @since 21.0.0 |