クラス ExceptionMatcher.Builder

java.lang.ObjectSE
org.springframework.kafka.support.ExceptionMatcher.Builder
含まれているクラス:
ExceptionMatcher

public static class ExceptionMatcher.Builder extends ObjectSE
ExceptionMatcher を構成するための Fluent API。
導入:
4.0
作成者:
Stephane Nicoll, Dave Syer, Gary Russell
  • コンストラクターの詳細

    • Builder

      protected Builder(boolean matchIfFound)
  • メソッドの詳細

    • add

      public ExceptionMatcher.Builder add(ClassSE<? extends ThrowableSE> exceptionType)
      例外型を追加します。
      パラメーター:
      exceptionType - 追加する例外の種類
      戻り値:
      this
    • addAll

      public ExceptionMatcher.Builder addAll(CollectionSE<ClassSE<? extends ThrowableSE>> exceptionTypes)
      指定されたコレクションからすべての例外型を追加します。
      パラメーター:
      exceptionTypes - 追加する例外の種類
      戻り値:
      this
    • traverseCauses

      public ExceptionMatcher.Builder traverseCauses(boolean traverseCauses)
      一致する例外の存在を確認するために、マッチャーがネストされた原因を走査する必要があるかどうかを指定します。
      パラメーター:
      traverseCauses - 原因を突き止めるかどうか
      戻り値:
      this
    • build

      public ExceptionMatcher build()
      ExceptionMatcher を構築します。
      戻り値:
      a new exception matcher