diff --git a/src/main/java/notai/common/exception/type/BadRequestException.java b/src/main/java/notai/common/exception/type/BadRequestException.java index 55e0cbc..fc07ea0 100644 --- a/src/main/java/notai/common/exception/type/BadRequestException.java +++ b/src/main/java/notai/common/exception/type/BadRequestException.java @@ -9,4 +9,7 @@ public class BadRequestException extends ApplicationException { public BadRequestException(ErrorMessages message) { super(message, 400); } + public BadRequestException(String message) { + super(message, 400); + } } diff --git a/src/main/java/notai/recording/application/RecordingService.java b/src/main/java/notai/recording/application/RecordingService.java index d09e819..4140908 100644 --- a/src/main/java/notai/recording/application/RecordingService.java +++ b/src/main/java/notai/recording/application/RecordingService.java @@ -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: 재시도 로직 추가? }