Skip to content

Commit

Permalink
Throw IOException in FileSystemResource.getURI() for consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrannen committed Oct 7, 2022
1 parent 72307bb commit 1d05274
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ public URI getURI() throws IOException {
uri = new URI(scheme, uri.getPath(), null);
}
catch (URISyntaxException ex) {
throw new IllegalStateException("Failed to normalize URI: " + uri, ex);
throw new IOException("Failed to normalize URI: " + uri, ex);
}
}
return uri;
Expand Down

0 comments on commit 1d05274

Please sign in to comment.