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

@@ -5,7 +5,7 @@ import de.pnreichmuth.timekeep_backend.entities.Team;
import lombok.extern.slf4j.Slf4j;
@Slf4j
public class RacerExistsException extends RuntimeException {
public class RacerExistsException extends ExistsException {
public RacerExistsException(String message, Racer racer) {
super(message);
log.warn(message, racer.getFirstName(), racer.getLastName());