Last change
on this file was 6fe77af, checked in by Ema <ema_spirova@…>, 2 years ago |
add location feature
|
-
Property mode
set to
100644
|
File size:
368 bytes
|
Rev | Line | |
---|
[6fe77af] | 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.NOT_FOUND)
|
---|
| 7 | public class CityNotFoundException extends RuntimeException{
|
---|
| 8 | public CityNotFoundException(Long id) {super(String.format("City with id %d is not found", id));}
|
---|
| 9 |
|
---|
| 10 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.