-package de.juplo.kafka.chatroom.api;
+package de.juplo.kafka.chat.backend.api;
-import de.juplo.kafka.chatroom.domain.MessageMutationException;
+import de.juplo.kafka.chat.backend.domain.MessageMutationException;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.http.HttpStatus;
import org.springframework.http.ProblemDetail;
@ControllerAdvice
-public class ChatroomControllerAdvice
+public class ChatBackendControllerAdvice
{
@Value("${server.context-path:/}")
String contextPath;
stringBuilder.setLength(0);
stringBuilder.append("The existing message with user=");
- stringBuilder.append(e.getExisting().getUser());
+ stringBuilder.append(e.getExisting().getUsername());
stringBuilder.append(" and id=");
stringBuilder.append(e.getExisting().getId());
stringBuilder.append(" cannot be mutated!");