commit | author | age
|
94fead
|
1 |
package hu.unr.fiber.cardapi.hibernate; |
FÁ |
2 |
|
|
3 |
import hu.unr.fiber.cardapi.interfaces.CardInterface; |
|
4 |
import org.springframework.http.HttpStatus; |
|
5 |
import org.springframework.web.bind.annotation.ResponseStatus; |
|
6 |
|
|
7 |
@ResponseStatus(value = HttpStatus.BAD_REQUEST) |
|
8 |
public class CardInvalidUpdateException extends Exception { |
|
9 |
CardInterface card; |
|
10 |
|
|
11 |
public CardInvalidUpdateException(String message, CardInterface modifiedCard) { |
|
12 |
super(message); |
|
13 |
this.card = modifiedCard; |
|
14 |
} |
|
15 |
} |