You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
nextcloud-server/apps/encryption/lib/Exceptions/PrivateKeyMissingException.php

24 lines
559 B

11 years ago
<?php
/**
* SPDX-FileCopyrightText: 2019-2024 Nextcloud GmbH and Nextcloud contributors
* SPDX-FileCopyrightText: 2016 ownCloud, Inc.
* SPDX-License-Identifier: AGPL-3.0-only
11 years ago
*/
namespace OCA\Encryption\Exceptions;
11 years ago
use OCP\Encryption\Exceptions\GenericEncryptionException;
class PrivateKeyMissingException extends GenericEncryptionException {
11 years ago
/**
* @param string $userId
*/
public function __construct($userId) {
if (empty($userId)) {
$userId = '<no-user-id-given>';
}
parent::__construct("Private Key missing for user: $userId");
}
11 years ago
}