mirror of
https://github.com/PaulReichmuth/timekeep-backend.git
synced 2025-12-22 22:41:59 +00:00
remove response status annotation, as now correctly handled in the ResponseEntity inside the respective controller
This commit is contained in:
@@ -5,7 +5,6 @@ import org.springframework.http.HttpStatus;
|
|||||||
import org.springframework.web.bind.annotation.ResponseStatus;
|
import org.springframework.web.bind.annotation.ResponseStatus;
|
||||||
|
|
||||||
@Slf4j
|
@Slf4j
|
||||||
@ResponseStatus(value = HttpStatus.NOT_FOUND, reason = "RACER_NOT_FOUND")
|
|
||||||
public class RacerNotFoundException extends RuntimeException {
|
public class RacerNotFoundException extends RuntimeException {
|
||||||
public RacerNotFoundException(String message) {
|
public RacerNotFoundException(String message) {
|
||||||
super(message);
|
super(message);
|
||||||
|
|||||||
@@ -5,7 +5,6 @@ import lombok.extern.slf4j.Slf4j;
|
|||||||
import org.springframework.http.HttpStatus;
|
import org.springframework.http.HttpStatus;
|
||||||
import org.springframework.web.bind.annotation.ResponseStatus;
|
import org.springframework.web.bind.annotation.ResponseStatus;
|
||||||
|
|
||||||
@ResponseStatus(value = HttpStatus.CONFLICT, reason = "TEAM_EXISTS")
|
|
||||||
@Slf4j
|
@Slf4j
|
||||||
public class TeamExistsException extends RuntimeException {
|
public class TeamExistsException extends RuntimeException {
|
||||||
public TeamExistsException(String message, Team team) {
|
public TeamExistsException(String message, Team team) {
|
||||||
|
|||||||
@@ -5,7 +5,6 @@ import org.springframework.http.HttpStatus;
|
|||||||
import org.springframework.web.bind.annotation.ResponseStatus;
|
import org.springframework.web.bind.annotation.ResponseStatus;
|
||||||
|
|
||||||
@Slf4j
|
@Slf4j
|
||||||
@ResponseStatus(HttpStatus.NOT_FOUND)
|
|
||||||
public class TeamNotFoundException extends RuntimeException {
|
public class TeamNotFoundException extends RuntimeException {
|
||||||
public TeamNotFoundException(String message) {
|
public TeamNotFoundException(String message) {
|
||||||
super(message);
|
super(message);
|
||||||
|
|||||||
Reference in New Issue
Block a user