Skip to content

Commit a6e8561

Browse files
dreis2211scottfrederick
authored andcommitted
Catch more generic FileSystemException in NamedPipeSocket
See gh-22035
1 parent f961043 commit a6e8561

File tree

1 file changed

+2
-2
lines changed
  • spring-boot-project/spring-boot-tools/spring-boot-buildpack-platform/src/main/java/org/springframework/boot/buildpack/platform/socket

1 file changed

+2
-2
lines changed

spring-boot-project/spring-boot-tools/spring-boot-buildpack-platform/src/main/java/org/springframework/boot/buildpack/platform/socket/NamedPipeSocket.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
import java.nio.channels.AsynchronousFileChannel;
2727
import java.nio.channels.Channels;
2828
import java.nio.channels.CompletionHandler;
29-
import java.nio.file.NoSuchFileException;
29+
import java.nio.file.FileSystemException;
3030
import java.nio.file.Paths;
3131
import java.nio.file.StandardOpenOption;
3232
import java.util.concurrent.CompletableFuture;
@@ -64,7 +64,7 @@ private AsynchronousFileByteChannel open(String path) throws IOException {
6464
return new AsynchronousFileByteChannel(AsynchronousFileChannel.open(Paths.get(path),
6565
StandardOpenOption.READ, StandardOpenOption.WRITE));
6666
}
67-
catch (NoSuchFileException ex) {
67+
catch (FileSystemException ex) {
6868
if (System.nanoTime() - startTime >= TIMEOUT) {
6969
throw ex;
7070
}

0 commit comments

Comments
 (0)