source: trip-planner/src/main/java/finki/diplomska/tripplanner/models/exceptions/PlannerNotFoundException.java@ 1ad8e64

Last change on this file since 1ad8e64 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 392 bytes
Line 
1package finki.diplomska.tripplanner.models.exceptions;
2
3import org.springframework.http.HttpStatus;
4import org.springframework.web.bind.annotation.ResponseStatus;
5
6@ResponseStatus(HttpStatus.NOT_FOUND)
7public class PlannerNotFoundException extends RuntimeException{
8 public PlannerNotFoundException(Long id) {
9 super(String.format("Planner with id: %d was not found", id));
10 }
11}
Note: See TracBrowser for help on using the repository browser.