summaryrefslogtreecommitdiffstats
path: root/apps/encryption/lib/exceptions/publickeymissingexception.php
blob: 9638c28e4278ee36658d5b16e6a9ba4b45be5edb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?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");
	}

}