diff options
author | Côme Chilliet <come.chilliet@nextcloud.com> | 2022-03-10 13:35:07 +0300 |
---|---|---|
committer | Côme Chilliet <come.chilliet@nextcloud.com> | 2022-03-14 16:33:57 +0300 |
commit | d8b2d32a5e3ddec7842f4e1007ff3233488f1f8a (patch) | |
tree | 33c7663f655c9dfbe60e82f7875ddf8e5dc6496e /lib/public | |
parent | a74248b0a050820516c91c3af4b9fe6042e86ac7 (diff) |
Move UserMigrationException to OCP and add @throws documentation
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'lib/public')
-rw-r--r-- | lib/public/UserMigration/IMigrator.php | 2 | ||||
-rw-r--r-- | lib/public/UserMigration/UserMigrationException.php | 30 |
2 files changed, 32 insertions, 0 deletions
diff --git a/lib/public/UserMigration/IMigrator.php b/lib/public/UserMigration/IMigrator.php index 4ff09167f5e..c97fb3c0bca 100644 --- a/lib/public/UserMigration/IMigrator.php +++ b/lib/public/UserMigration/IMigrator.php @@ -38,6 +38,7 @@ interface IMigrator { /** * Export user data * + * @throws UserMigrationException * @since 24.0.0 */ public function export( @@ -49,6 +50,7 @@ interface IMigrator { /** * Import user data * + * @throws UserMigrationException * @since 24.0.0 */ public function import( diff --git a/lib/public/UserMigration/UserMigrationException.php b/lib/public/UserMigration/UserMigrationException.php new file mode 100644 index 00000000000..f3812bf42b1 --- /dev/null +++ b/lib/public/UserMigration/UserMigrationException.php @@ -0,0 +1,30 @@ +<?php + +declare(strict_types=1); + +/** + * @copyright Copyright (c) 2022 Côme Chilliet <come.chilliet@nextcloud.com> + * + * @author Côme Chilliet <come.chilliet@nextcloud.com> + * + * @license GNU AGPL version 3 or any later version + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + * + */ + +namespace OCP\UserMigration; + +class UserMigrationException extends \Exception { +} |