クラス BeanInstantiationException
java.lang.ObjectSE
java.lang.ThrowableSE
java.lang.ExceptionSE
java.lang.RuntimeExceptionSE
org.springframework.core.NestedRuntimeException
org.springframework.beans.BeansException
org.springframework.beans.FatalBeanException
org.springframework.beans.BeanInstantiationException
- 実装されたすべてのインターフェース:
SerializableSE
Bean のインスタンス化が失敗した場合にスローされる例外。問題のある Bean クラスを保持します。
- 導入:
- 1.2.8
- 作成者:
- Juergen Hoeller
- 関連事項:
コンストラクターのサマリー
コンストラクター説明BeanInstantiationException
(ClassSE<?> beanClass, StringSE msg) 新しい BeanInstantiationException を作成します。BeanInstantiationException
(ClassSE<?> beanClass, StringSE msg, ThrowableSE cause) 新しい BeanInstantiationException を作成します。BeanInstantiationException
(ConstructorSE<?> constructor, StringSE msg, ThrowableSE cause) 新しい BeanInstantiationException を作成します。BeanInstantiationException
(MethodSE constructingMethod, StringSE msg, ThrowableSE cause) 新しい BeanInstantiationException を作成します。方法の概要
修飾子と型メソッド説明ClassSE<?>
問題のある Bean クラスを返します(非null
)。既知の場合、Bean 構築目的のデリゲートを返します。既知の場合、問題のコンストラクターを返します。クラス org.springframework.core.NestedRuntimeException から継承されたメソッド
contains, getMostSpecificCause, getRootCause
クラス java.lang.ThrowableSE から継承されたメソッド
addSuppressedSE, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCauseSE, printStackTrace, printStackTraceSE, printStackTraceSE, setStackTraceSE, toString
コンストラクターの詳細
BeanInstantiationException
新しい BeanInstantiationException を作成します。- パラメーター:
beanClass
- 問題のある Bean クラスmsg
- 詳細メッセージ
BeanInstantiationException
新しい BeanInstantiationException を作成します。- パラメーター:
beanClass
- 問題のある Bean クラスmsg
- 詳細メッセージcause
- 根本原因
BeanInstantiationException
public BeanInstantiationException(ConstructorSE<?> constructor, @Nullable StringSE msg, @Nullable ThrowableSE cause) 新しい BeanInstantiationException を作成します。- パラメーター:
constructor
- 問題のあるコンストラクターmsg
- 詳細メッセージcause
- 根本原因- 導入:
- 4.3
BeanInstantiationException
public BeanInstantiationException(MethodSE constructingMethod, @Nullable StringSE msg, @Nullable ThrowableSE cause) 新しい BeanInstantiationException を作成します。- パラメーター:
constructingMethod
- Bean 構築目的のデリゲート (必ずというわけではありませんが、通常は静的ファクトリメソッド)msg
- 詳細メッセージcause
- 根本原因- 導入:
- 4.3
メソッドの詳細
getBeanClass
問題のある Bean クラスを返します(非null
)。- 戻り値:
- インスタンス化されるクラス
getConstructor
既知の場合、問題のコンストラクターを返します。- 戻り値:
- 使用中のコンストラクター、またはファクトリメソッドの場合またはデフォルトのインスタンス化の場合は
null
- 導入:
- 4.3
getConstructingMethod
既知の場合、Bean 構築目的のデリゲートを返します。- 戻り値:
- 使用中のメソッド(通常は静的ファクトリメソッド)、またはコンストラクターベースのインスタンス化の場合は
null
- 導入:
- 4.3