public abstract class AbstractExceptionHandlerMethodResolver extends ObjectSE
ExceptionDepthComparator
を使用してソートされ、上位の一致が返されます。修飾子 | コンストラクターと説明 |
---|---|
protected | AbstractExceptionHandlerMethodResolver(MapSE<ClassSE<? extends ThrowableSE>,MethodSE> mappedMethods) 例外からメソッドへのマッピングを受け入れる protected コンストラクター。 |
修飾子と型 | メソッドと説明 |
---|---|
protected static ListSE<ClassSE<? extends ThrowableSE>> | getExceptionsFromMethodSignature(MethodSE method) このメソッドが処理する例外を抽出します。この実装は、メソッドシグネチャーで Throwable のサブクラスを探します。 |
boolean | hasExceptionMappings() 含まれている型に例外マッピングがあるかどうか。 |
MethodSE | resolveMethod(ThrowableSE exception) 指定された例外を処理する Method SE を見つけます。 |
MethodSE | resolveMethodByExceptionType(ClassSE<? extends ThrowableSE> exceptionType) 指定された例外型を処理する Method SE を見つけます。 |
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSE
protected AbstractExceptionHandlerMethodResolver(MapSE<ClassSE<? extends ThrowableSE>,MethodSE> mappedMethods)
protected static ListSE<ClassSE<? extends ThrowableSE>> getExceptionsFromMethodSignature(MethodSE method)
public boolean hasExceptionMappings()
@Nullable public MethodSE resolveMethod(ThrowableSE exception)
Method
SE を見つけます。複数の一致が見つかった場合は、ExceptionDepthComparator
を使用します。exception
- 例外 null
@Nullable public MethodSE resolveMethodByExceptionType(ClassSE<? extends ThrowableSE> exceptionType)
Method
SE を見つけます。これは、Exception
SE インスタンスが利用できない場合に便利です(例: ツール用)。exceptionType
- 例外型 null