Skip to content

Commit

Permalink
Chore: recording 디버깅을 위해 exception message 형태 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
yugyeom-ghim committed Nov 6, 2024
1 parent 3e0b2e7 commit 8b55b75
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,7 @@ public class BadRequestException extends ApplicationException {
public BadRequestException(ErrorMessages message) {
super(message, 400);
}
public BadRequestException(String message) {
super(message, 400);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public RecordingSaveResult saveRecording(RecordingSaveCommand command) {
return RecordingSaveResult.of(savedRecording.getId(), foundDocument.getId(), savedRecording.getCreatedAt());

} catch (IllegalArgumentException e) {
throw new BadRequestException(INVALID_AUDIO_ENCODING);
throw new BadRequestException(INVALID_AUDIO_ENCODING + " : " + e.getMessage());
} catch (IOException e) {
throw new InternalServerErrorException(FILE_SAVE_ERROR); // TODO: 재시도 로직 추가?
}
Expand Down

0 comments on commit 8b55b75

Please sign in to comment.