java FileNotFoundException 当java程序试图打开指定路径名表示的文件失败时,抛出此异常。 在不存在具有指定路径名的文件时,此异常将由 FileInputStream、FileOutputStream 和 RandomAccessFile 构造方法抛出。如果该文件存在,但是由于某些原因不可访问,比如试图打开一个只读文件进行写入,此时这些构造方法仍然会抛出该异常。 构造方法摘要 FileNotFoundException() 使用 null 作为错误详细消息构造 FileNotFoundException。 FileNotFoundException(String s) 构造带有指定详细消息的 FileNotFoundException。 方法摘要 从类 java.lang.Throwable继承的方法 fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString 从类 java.lang.Object继承的方法 clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait