|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.io.IOException
java.io.FileNotFoundException
public class FileNotFoundException
指定されたパス名で示されるファイルが開けなかったことを通知します。
この例外は、指定されたパス名のファイルが存在しないときに、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 |
| コンストラクタの詳細 |
|---|
public FileNotFoundException()
null を設定して FileNotFoundException を構築します。
public FileNotFoundException(String s)
FileNotFoundException を構築します。文字列 s は、java.lang.Throwable クラスの Throwable.getMessage() メソッドを使ってあとで取り出すことができます。
s - 詳細メッセージ
|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
Copyright 2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Documentation Redistribution Policy も参照してください。