Skip to content

Commit

Permalink
merge: 스토어 좌표 리스트 예외 추가 - #104
Browse files Browse the repository at this point in the history
[FIX] 스토어 좌표 리스트 예외 추가 - #104
  • Loading branch information
sjk4618 authored Jan 20, 2025
2 parents 64b4c99 + 97fe89e commit 6cafe43
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,12 @@ public class StoreService {
private final StoreOperationTimeFacade storeOperationTimeFacade;

public List<StoreCoordinate> getStoreCoordinateList(final Station station) {
final List<StoreCoordinatesDto> storeCoordianteDtoList = storeFacade.findCoordinatesByStation(station);
final List<StoreCoordinatesDto> storeCoordianteDtoList;
try {
storeCoordianteDtoList = storeFacade.findCoordinatesByStation(station);
} catch (NotFoundBaseException e) {
throw new StoreNotfoundException(StoreErrorCode.STORE_NOT_FOUND_ENTITY);
}

return storeCoordianteDtoList.stream()
.map(storeCoordianteDto -> StoreCoordinate.of(
Expand Down

0 comments on commit 6cafe43

Please sign in to comment.