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) 指定された例外を処理する MethodSE を見つけます。 |
MethodSE | resolveMethodByExceptionType(ClassSE<? extends ThrowableSE> exceptionType) 指定された例外型を処理する MethodSE を見つけます。 |
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSEprotected 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)
MethodSE を見つけます。複数の一致が見つかった場合は、ExceptionDepthComparator を使用します。exception - 例外 null @Nullable public MethodSE resolveMethodByExceptionType(ClassSE<? extends ThrowableSE> exceptionType)
MethodSE を見つけます。これは、ExceptionSE インスタンスが利用できない場合に便利です(例: ツール用)。exceptionType - 例外型 null