예외를 처리할 때 아래와 같이 try catch방식이 아니라 public class RestaurantNotFoundException extends RuntimeException { //예외처리 함수 public RestaurantNotFoundException(Long id){ super("Could not find restaurant" + id); } } @GetMapping("/restaurants/{id}") public Restaurant detail(@PathVariable("id") Long id){ try{ Restaurant restaurant = restaurantService.getRestaurant(id); //기본정보 + 메뉴정보 }catch(RestaurantNotFoundExc..