2015-01-14 19:39:23 +00:00
|
|
|
<?php
|
2024-05-23 07:26:56 +00:00
|
|
|
|
2015-01-14 19:39:23 +00:00
|
|
|
/**
|
2024-05-23 07:26:56 +00:00
|
|
|
* SPDX-FileCopyrightText: 2016-2024 Nextcloud GmbH and Nextcloud contributors
|
|
|
|
* SPDX-FileCopyrightText: 2016 ownCloud, Inc.
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
2015-01-14 19:39:23 +00:00
|
|
|
*/
|
|
|
|
namespace OC\Encryption\Exceptions;
|
|
|
|
|
2015-04-01 14:36:08 +00:00
|
|
|
use OCP\Encryption\Exceptions\GenericEncryptionException;
|
2015-01-14 19:39:23 +00:00
|
|
|
|
2015-04-01 14:36:08 +00:00
|
|
|
class EncryptionHeaderKeyExistsException extends GenericEncryptionException {
|
|
|
|
/**
|
|
|
|
* @param string $key
|
|
|
|
*/
|
|
|
|
public function __construct($key) {
|
|
|
|
parent::__construct('header key "' . $key . '" already reserved by ownCloud');
|
|
|
|
}
|
2015-03-30 11:23:10 +00:00
|
|
|
}
|