java.lang
クラス InstantiationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.InstantiationException
- すべての実装されたインタフェース:
- Serializable
public class InstantiationException
- extends Exception
アプリケーションが Class
クラスの newInstance
メソッドを使ってクラスのインスタンスを生成しようとしたときに、クラスがインタフェースまたは abstract クラスであるために指定されたオブジェクトのインスタンスを生成できない場合にスローされます。
- 導入されたバージョン:
- JDK1.0
- 関連項目:
Class.newInstance()
,
直列化された形式
クラス java.lang.Throwable から継承されたメソッド |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
InstantiationException
public InstantiationException()
- 詳細メッセージを指定しないで
InstantiationException
を構築します。
InstantiationException
public InstantiationException(String s)
- 指定された詳細メッセージを持つ
InstantiationException
を構築します。
- パラメータ:
s
- 詳細メッセージ
Copyright 2006 Sun Microsystems, Inc. All Rights Reserved. Use of this specification is subject to license terms.