refactor: `UnknownChatroomException` is a business-exception - Move
authorKai Moritz <kai@juplo.de>
Sun, 8 Jan 2023 15:20:53 +0000 (16:20 +0100)
committerKai Moritz <kai@juplo.de>
Sun, 15 Jan 2023 18:37:26 +0000 (19:37 +0100)
src/main/java/de/juplo/kafka/chat/backend/api/UnknownChatroomException.java [deleted file]
src/main/java/de/juplo/kafka/chat/backend/domain/UnknownChatroomException.java [new file with mode: 0644]

diff --git a/src/main/java/de/juplo/kafka/chat/backend/api/UnknownChatroomException.java b/src/main/java/de/juplo/kafka/chat/backend/api/UnknownChatroomException.java
deleted file mode 100644 (file)
index 2861826..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-package de.juplo.kafka.chat.backend.api;
-
-import lombok.Getter;
-
-import java.util.UUID;
-
-
-public class UnknownChatroomException extends RuntimeException
-{
-  @Getter
-  private final UUID chatroomId;
-
-  public UnknownChatroomException(UUID chatroomId)
-  {
-    super("Chatroom does not exist: " + chatroomId);
-    this.chatroomId = chatroomId;
-  }
-}
diff --git a/src/main/java/de/juplo/kafka/chat/backend/domain/UnknownChatroomException.java b/src/main/java/de/juplo/kafka/chat/backend/domain/UnknownChatroomException.java
new file mode 100644 (file)
index 0000000..2861826
--- /dev/null
@@ -0,0 +1,18 @@
+package de.juplo.kafka.chat.backend.api;
+
+import lombok.Getter;
+
+import java.util.UUID;
+
+
+public class UnknownChatroomException extends RuntimeException
+{
+  @Getter
+  private final UUID chatroomId;
+
+  public UnknownChatroomException(UUID chatroomId)
+  {
+    super("Chatroom does not exist: " + chatroomId);
+    this.chatroomId = chatroomId;
+  }
+}