Throw IOException in FileSystemResource.getURI() for consistency
See gh-29275
This commit is contained in:
@@ -248,7 +248,7 @@ public class FileSystemResource extends AbstractResource implements WritableReso
|
||||
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;
|
||||
|
||||
Reference in New Issue
Block a user