public class FileNotFoundException extends IOException
该异常将由FileInputStream
,FileOutputStream
抛出,并RandomAccessFile
构造函数当文件与指定的路径不存在。它也将被抛出这些构造函数如果文件确实存在,但因为某些原因是不可访问的,例如,当尝试打开一个只读文件写入。
Constructor and Description |
---|
FileNotFoundException()
构建了一个
FileNotFoundException 与
null 作为它的错误详细信息。
|
FileNotFoundException(String s)
创建一个指定详细信息的
FileNotFoundException 。
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public FileNotFoundException()
FileNotFoundException
与
null
作为它的错误详细信息。
public FileNotFoundException(String s)
s
-详细信息。
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, 2014, Oracle and/or its affiliates. All rights reserved.