20 lines
382 B
PHP
20 lines
382 B
PHP
<?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");
|
|
}
|
|
|
|
}
|