aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Repair/Events/RepairErrorEvent.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/Repair/Events/RepairErrorEvent.php')
-rw-r--r--lib/private/Repair/Events/RepairErrorEvent.php25
1 files changed, 25 insertions, 0 deletions
diff --git a/lib/private/Repair/Events/RepairErrorEvent.php b/lib/private/Repair/Events/RepairErrorEvent.php
new file mode 100644
index 00000000000..e5be8a5a031
--- /dev/null
+++ b/lib/private/Repair/Events/RepairErrorEvent.php
@@ -0,0 +1,25 @@
+<?php
+
+declare(strict_types=1);
+
+/**
+ * SPDX-FileCopyrightText: 2022 Nextcloud GmbH and Nextcloud contributors
+ * SPDX-License-Identifier: AGPL-3.0-only
+ */
+namespace OC\Repair\Events;
+
+use OCP\EventDispatcher\Event;
+
+class RepairErrorEvent extends Event {
+ private string $message;
+
+ public function __construct(
+ string $message,
+ ) {
+ $this->message = $message;
+ }
+
+ public function getMessage(): string {
+ return $this->message;
+ }
+}