- java.lang.Object
 -  
      
- java.lang.Throwable
 -  
        
- java.lang.Exception
 -  
          
- java.io.IOException
 -  
            
- java.io.FileNotFoundException
 
 
 
 
 
-  
       
- 实现的所有接口
 -  
         
Serializable 
public class FileNotFoundException extends IOException
尝试打开由指定路径名表示的文件的信号失败。此异常将被抛出
FileInputStream,FileOutputStream和RandomAccessFile构造函数用指定的路径名的文件不存在。 如果文件确实存在但由于某种原因无法访问,例如当尝试打开只读文件进行写入时,这些构造函数也会抛出它。- 从以下版本开始:
 - 1.0
 - 另请参见:
 - Serialized Form
 
 
-  
        
       
-  
             
构造方法摘要
构造方法 构造器 描述 FileNotFoundException()构造一个FileNotFoundException其中包含null作为其错误详细消息。FileNotFoundException(String s)使用指定的详细消息构造FileNotFoundException。 
-  
             
方法摘要
 
 -  
             
 
-  
        
       
-  
             
构造方法详细信息
-  
FileNotFoundException
public FileNotFoundException()
使用null构造一个FileNotFoundException作为其错误详细消息。 
-  
FileNotFoundException
public FileNotFoundException(String s)
使用指定的详细消息构造FileNotFoundException。s可以通过类java.lang.Throwable的方法检索字符串Throwable.getMessage()java.lang.Throwable。- 参数
 -  
              
s- 详细信息。 
 
 -  
 
 -