projects
/
demos
/
kafka
/
chat
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
494f2b8
)
refactor: `UnknownChatroomException` is a business-exception - Relocate
author
Kai Moritz
<kai@juplo.de>
Sun, 8 Jan 2023 15:21:17 +0000
(16:21 +0100)
committer
Kai Moritz
<kai@juplo.de>
Sun, 15 Jan 2023 18:37:26 +0000
(19:37 +0100)
src/main/java/de/juplo/kafka/chat/backend/api/ChatBackendController.java
patch
|
blob
|
history
src/main/java/de/juplo/kafka/chat/backend/api/ChatBackendControllerAdvice.java
patch
|
blob
|
history
src/main/java/de/juplo/kafka/chat/backend/domain/UnknownChatroomException.java
patch
|
blob
|
history
diff --git
a/src/main/java/de/juplo/kafka/chat/backend/api/ChatBackendController.java
b/src/main/java/de/juplo/kafka/chat/backend/api/ChatBackendController.java
index
cc6958f
..
31a2035
100644
(file)
--- a/
src/main/java/de/juplo/kafka/chat/backend/api/ChatBackendController.java
+++ b/
src/main/java/de/juplo/kafka/chat/backend/api/ChatBackendController.java
@@
-2,6
+2,7
@@
package de.juplo.kafka.chat.backend.api;
import de.juplo.kafka.chat.backend.domain.ChatHome;
import de.juplo.kafka.chat.backend.domain.ChatRoom;
import de.juplo.kafka.chat.backend.domain.ChatHome;
import de.juplo.kafka.chat.backend.domain.ChatRoom;
+import de.juplo.kafka.chat.backend.domain.UnknownChatroomException;
import de.juplo.kafka.chat.backend.persistence.StorageStrategy;
import lombok.RequiredArgsConstructor;
import org.springframework.http.codec.ServerSentEvent;
import de.juplo.kafka.chat.backend.persistence.StorageStrategy;
import lombok.RequiredArgsConstructor;
import org.springframework.http.codec.ServerSentEvent;
diff --git
a/src/main/java/de/juplo/kafka/chat/backend/api/ChatBackendControllerAdvice.java
b/src/main/java/de/juplo/kafka/chat/backend/api/ChatBackendControllerAdvice.java
index
6ff108e
..
ab8c13d
100644
(file)
--- a/
src/main/java/de/juplo/kafka/chat/backend/api/ChatBackendControllerAdvice.java
+++ b/
src/main/java/de/juplo/kafka/chat/backend/api/ChatBackendControllerAdvice.java
@@
-1,6
+1,7
@@
package de.juplo.kafka.chat.backend.api;
import de.juplo.kafka.chat.backend.domain.MessageMutationException;
package de.juplo.kafka.chat.backend.api;
import de.juplo.kafka.chat.backend.domain.MessageMutationException;
+import de.juplo.kafka.chat.backend.domain.UnknownChatroomException;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.http.HttpStatus;
import org.springframework.http.ProblemDetail;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.http.HttpStatus;
import org.springframework.http.ProblemDetail;
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
index
2861826
..
1f70f11
100644
(file)
--- a/
src/main/java/de/juplo/kafka/chat/backend/domain/UnknownChatroomException.java
+++ b/
src/main/java/de/juplo/kafka/chat/backend/domain/UnknownChatroomException.java
@@
-1,4
+1,4
@@
-package de.juplo.kafka.chat.backend.
api
;
+package de.juplo.kafka.chat.backend.
domain
;
import lombok.Getter;
import lombok.Getter;