パッケージ org.springframework.beans

クラス BeanInstantiationException

実装されたすべてのインターフェース:
SerializableSE

public class BeanInstantiationException extends FatalBeanException
Bean のインスタンス化が失敗した場合にスローされる例外。問題のある Bean クラスを保持します。
導入:
1.2.8
作成者:
Juergen Hoeller
関連事項:
  • コンストラクターの詳細

    • BeanInstantiationException

      public BeanInstantiationException(ClassSE<?> beanClass, StringSE msg)
      新しい BeanInstantiationException を作成します。
      パラメーター:
      beanClass - 問題のある Bean クラス
      msg - 詳細メッセージ
    • BeanInstantiationException

      public BeanInstantiationException(ClassSE<?> beanClass, StringSE msg, @Nullable ThrowableSE cause)
      新しい 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

      public ClassSE<?> getBeanClass()
      問題のある Bean クラスを返します(非 null)。
      戻り値:
      インスタンス化されるクラス
    • getConstructor

      @Nullable public ConstructorSE<?> getConstructor()
      既知の場合、問題のコンストラクターを返します。
      戻り値:
      使用中のコンストラクター、またはファクトリメソッドの場合またはデフォルトのインスタンス化の場合は null 
      導入:
      4.3
    • getConstructingMethod

      @Nullable public MethodSE getConstructingMethod()
      既知の場合、Bean 構築目的のデリゲートを返します。
      戻り値:
      使用中のメソッド(通常は静的ファクトリメソッド)、またはコンストラクターベースのインスタンス化の場合は null 
      導入:
      4.3