| @@ 33-46 (lines=14) @@ | ||
| 30 | * |
|
| 31 | * @since 14.0.0 |
|
| 32 | */ |
|
| 33 | class ActionNotSupportedException extends HintException { |
|
| 34 | ||
| 35 | /** |
|
| 36 | * ActionNotSupportedException constructor. |
|
| 37 | * |
|
| 38 | * @since 14.0.0 |
|
| 39 | * |
|
| 40 | */ |
|
| 41 | public function __construct($action) { |
|
| 42 | $l = \OC::$server->getL10N('federation'); |
|
| 43 | $message = 'Action "' . $action . '" not supported or implemented.'; |
|
| 44 | $hint = $l->t('Action "%s" not supported or implemented.', [$action]); |
|
| 45 | parent::__construct($message, $hint); |
|
| 46 | } |
|
| 47 | ||
| 48 | } |
|
| 49 | ||
| @@ 33-47 (lines=15) @@ | ||
| 30 | * |
|
| 31 | * @since 14.0.0 |
|
| 32 | */ |
|
| 33 | class ProviderDoesNotExistsException extends HintException { |
|
| 34 | ||
| 35 | /** |
|
| 36 | * ProviderDoesNotExistsException constructor. |
|
| 37 | * |
|
| 38 | * @since 14.0.0 |
|
| 39 | * |
|
| 40 | * @param string $providerId cloud federation provider ID |
|
| 41 | */ |
|
| 42 | public function __construct($providerId) { |
|
| 43 | $l = \OC::$server->getL10N('federation'); |
|
| 44 | $message = 'Cloud Federation Provider with ID: "' . $providerId . '" does not exist.'; |
|
| 45 | $hint = $l->t('Cloud Federation Provider with ID: "%s" does not exist.', [$providerId]); |
|
| 46 | parent::__construct($message, $hint); |
|
| 47 | } |
|
| 48 | ||
| 49 | } |
|
| 50 | ||