made exception interfaces

This commit is contained in:
2026-02-04 19:50:24 +01:00
parent 0a65a47749
commit b9d4943ba4
8 changed files with 20 additions and 6 deletions

View File

@@ -6,7 +6,7 @@ import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.ResponseStatus;
@Slf4j
public class TeamExistsException extends RuntimeException {
public class TeamExistsException extends ExistsException {
public TeamExistsException(String message, Team team) {
super(message);
log.warn(message, team.getTeamName());