From: Kai Moritz Date: Sun, 8 Jan 2023 15:20:53 +0000 (+0100) Subject: refactor: `UnknownChatroomException` is a business-exception - Move X-Git-Tag: wip~60 X-Git-Url: http://juplo.de/gitweb/?a=commitdiff_plain;h=494f2b8d7bd9d7955650cfc069e41917b69afc39;p=demos%2Fkafka%2Fchat refactor: `UnknownChatroomException` is a business-exception - Move --- 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 index 28618264..00000000 --- a/src/main/java/de/juplo/kafka/chat/backend/api/UnknownChatroomException.java +++ /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 index 00000000..28618264 --- /dev/null +++ b/src/main/java/de/juplo/kafka/chat/backend/domain/UnknownChatroomException.java @@ -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; + } +}