mirror of
https://github.com/PaulReichmuth/timekeep-backend.git
synced 2026-02-06 04:53:25 +00:00
15 lines
454 B
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());
|
|
}
|
|
}
|