Skip to content

Commit 8b7e7ff

Browse files
committed
update to rethrow IOException
1 parent db4aaa0 commit 8b7e7ff

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

aws-serverless-java-container-core/src/main/java/com/amazonaws/serverless/proxy/internal/servlet/AwsHttpServletRequest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -493,7 +493,7 @@ public Part getPart(String s)
493493
}
494494

495495
@SuppressFBWarnings({"FILE_UPLOAD_FILENAME", "WEAK_FILENAMEUTILS"})
496-
protected Map<String, List<Part>> getMultipartFormParametersMap() throws RuntimeException {
496+
protected Map<String, List<Part>> getMultipartFormParametersMap() throws IOException {
497497
if (multipartFormParameters != null) {
498498
return multipartFormParameters;
499499
}
@@ -523,7 +523,7 @@ protected Map<String, List<Part>> getMultipartFormParametersMap() throws Runtime
523523
addPart(multipartFormParameters, item.getFieldName(), newPart);
524524
} catch (IOException e) {
525525
log.error("Encounter issue adding form multipart", e);
526-
throw new RuntimeException(e);
526+
throw new IOException(e);
527527
}
528528
}
529529
} catch (FileUploadException e) {

0 commit comments

Comments
 (0)