server/apps/encryption/lib/exceptions/publickeymissingexception.php
2015-04-07 13:30:30 +02:00

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");
}
}