CARVIEW |
Select Language
HTTP/1.1 200 OK
Server: AkamaiNetStorage
Content-Type: text/html
ETag: "fc2dff9cbc7fa4bbd47b5fa4e48f63c7:1595391258.630135"
Vary: Accept-Encoding
Content-Encoding: gzip
Cache-Control: max-age=21600
Date: Tue, 14 Oct 2025 04:24:46 GMT
Content-Length: 3171
Connection: keep-alive
NoSuchFileException (Java Platform SE 7 )
java.nio.file
Class NoSuchFileException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.io.IOException
-
- java.nio.file.FileSystemException
-
- java.nio.file.NoSuchFileException
-
- All Implemented Interfaces:
- Serializable
public class NoSuchFileException extends FileSystemException
Checked exception thrown when an attempt is made to access a file that does not exist.- Since:
- 1.7
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description NoSuchFileException(String file)
Constructs an instance of this class.NoSuchFileException(String file, String other, String reason)
Constructs an instance of this class.
-
Method Summary
-
Methods inherited from class java.nio.file.FileSystemException
getFile, getMessage, getOtherFile, getReason
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
NoSuchFileException
public NoSuchFileException(String file)
Constructs an instance of this class.- Parameters:
file
- a string identifying the file ornull
if not known.
-
NoSuchFileException
public NoSuchFileException(String file, String other, String reason)
Constructs an instance of this class.- Parameters:
file
- a string identifying the file ornull
if not known.other
- a string identifying the other file ornull
if not known.reason
- a reason message with additional information ornull
-
-
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2020, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.