Last change
on this file since eed0bf8 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
477 bytes
|
Rev | Line | |
---|
[6a3a178] | 1 | package finki.diplomska.tripplanner.models.exceptions;
|
---|
| 2 |
|
---|
| 3 | import org.springframework.http.HttpStatus;
|
---|
| 4 | import org.springframework.web.bind.annotation.ResponseStatus;
|
---|
| 5 |
|
---|
| 6 | @ResponseStatus(HttpStatus.PRECONDITION_FAILED)
|
---|
| 7 | public class LocationAlreadyInPlannerException extends RuntimeException{
|
---|
| 8 | public LocationAlreadyInPlannerException(Long id, Long locationId) {
|
---|
| 9 | super(String.format("Location with id: %d already exists in the planner with id %d", locationId, id));
|
---|
| 10 | }
|
---|
| 11 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.