Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/mail.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2020-02-25 19:11:03 +0300
committerChristoph Wurst <christoph@winzerhof-wurst.at>2020-02-26 12:13:28 +0300
commitbff314c32d5e21316035030c0d7f436b88e6d85c (patch)
tree42c97ed282e7ec456e9d4b2a8915c24e7fef009f /src/errors
parentd8df9a9cf01edfc16103ffba4ff1fa5067ed0c4e (diff)
Make it possible to resume the initial sync
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'src/errors')
-rw-r--r--src/errors/SyncIncompleteError.js32
1 files changed, 32 insertions, 0 deletions
diff --git a/src/errors/SyncIncompleteError.js b/src/errors/SyncIncompleteError.js
new file mode 100644
index 000000000..ccd47b174
--- /dev/null
+++ b/src/errors/SyncIncompleteError.js
@@ -0,0 +1,32 @@
+/*
+ * @copyright 2020 Christoph Wurst <christoph@winzerhof-wurst.at>
+ *
+ * @author 2020 Christoph Wurst <christoph@winzerhof-wurst.at>
+ *
+ * @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/>.
+ */
+
+export default class SyncIncompleteError extends Error {
+ constructor(message) {
+ super(message)
+ this.name = SyncIncompleteError.getName()
+ this.message = message
+ }
+
+ static getName() {
+ return 'SyncIncompleteError'
+ }
+}