Throw IOException in FileSystemResource.getURI() for consistency

See gh-29275
This commit is contained in:
Sam Brannen
2022-10-07 17:06:54 +02:00
parent 72307bbb20
commit 1d052742d1

View File

@@ -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;