nextcloud/apps/encryption/lib/exceptions/publickeymissingexception.php

21 lines
382 B
PHP
Raw Normal View History

2015-04-01 17:36:08 +03:00
<?php
namespace OCA\Encryption\Exceptions;
use OCP\Encryption\Exceptions\GenericEncryptionException;
class PublicKeyMissingException extends GenericEncryptionException {
/**
* @param string $userId
*/
public function __construct($userId) {
if(empty($userId)) {
$userId = "<no-user-id-given>";
}
parent::__construct("Public Key missing for user: $userId");
}
}