12345678910111213141516171819202122232425262728293031 |
- <?php
- namespace OCP\Federation\Exceptions;
- use OCP\HintException;
- class ProviderAlreadyExistsException extends HintException {
-
- public function __construct($newProviderId, $existingProviderName) {
- $l = \OCP\Util::getL10N('federation');
- $message = 'ID "' . $newProviderId . '" already used by cloud federation provider "' . $existingProviderName . '"';
- $hint = $l->t('ID "%1$s" already used by cloud federation provider "%2$s"', [$newProviderId, $existingProviderName]);
- parent::__construct($message, $hint);
- }
- }
|