Files
timekeep-backend/src/main/java/de/pnreichmuth/timekeep_backend/exceptions/TeamExistsException.java

15 lines
454 B
Java

package de.pnreichmuth.timekeep_backend.exceptions;
import de.pnreichmuth.timekeep_backend.entities.Team;
import lombok.extern.slf4j.Slf4j;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.ResponseStatus;
@Slf4j
public class TeamExistsException extends ExistsException {
public TeamExistsException(String message, Team team) {
super(message);
log.warn(message, team.getTeamName());
}
}