From d8b2d32a5e3ddec7842f4e1007ff3233488f1f8a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=B4me=20Chilliet?= Date: Thu, 10 Mar 2022 11:35:07 +0100 Subject: [PATCH] Move UserMigrationException to OCP and add @throws documentation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Côme Chilliet --- lib/public/UserMigration/IMigrator.php | 2 ++ .../UserMigration/UserMigrationException.php | 30 +++++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 lib/public/UserMigration/UserMigrationException.php 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 @@ + + * + * @author Côme Chilliet + * + * @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 . + * + */ + +namespace OCP\UserMigration; + +class UserMigrationException extends \Exception { +}