Skip to content

Commit

Permalink
refactor: UnsupportedFileFormatException 사용
Browse files Browse the repository at this point in the history
  • Loading branch information
jj0526 committed Nov 8, 2024
1 parent 27d7226 commit 54ea1d2
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ public ResponseEntity<ApiData<String>> handlePostNotFoundException(PostNotFoundE
return ApiData.errorFrom(e.getErrorInfo());
}

@ExceptionHandler(InvalidFileException.class)
public ResponseEntity<ApiData<String>> handleInvalidFileException(InvalidFileException e){
@ExceptionHandler(UnsupportedFileFormatException.class)
public ResponseEntity<ApiData<String>> handleInvalidFileException(UnsupportedFileFormatException e){
return ApiData.errorFrom(e.getErrorInfo());
}

Expand Down

0 comments on commit 54ea1d2

Please sign in to comment.