package hu.unr.fiber.cardapi.hibernate;
|
|
import hu.unr.fiber.cardapi.interfaces.CardInterface;
|
import org.springframework.http.HttpStatus;
|
import org.springframework.web.bind.annotation.ResponseStatus;
|
|
@ResponseStatus(value = HttpStatus.BAD_REQUEST)
|
public class CardInvalidUpdateException extends Exception {
|
CardInterface card;
|
|
public CardInvalidUpdateException(String message, CardInterface modifiedCard) {
|
super(message);
|
this.card = modifiedCard;
|
}
|
}
|