public class ExceptionHandlerMethodResolver
extends java.lang.Object| 修飾子と型 | フィールドと説明 |
|---|---|
static ReflectionUtils.MethodFilter | EXCEPTION_HANDLER_METHODS@ExceptionHandler メソッドを選択するためのフィルター。 |
| コンストラクターと説明 |
|---|
ExceptionHandlerMethodResolver(java.lang.Class<?> handlerType) 指定された型の ExceptionHandler メソッドを見つけるコンストラクター。 |
| 修飾子と型 | メソッドと説明 |
|---|---|
boolean | hasExceptionMappings() 含まれている型に例外マッピングがあるかどうか。 |
java.lang.reflect.Method | resolveMethod(java.lang.Exception exception) 指定された例外を処理する Method を見つけます。 |
java.lang.reflect.Method | resolveMethodByExceptionType(java.lang.Class<? extends java.lang.Throwable> exceptionType) 指定された例外型を処理する Method を見つけます。 |
java.lang.reflect.Method | resolveMethodByThrowable(java.lang.Throwable exception) 指定された Throwable を処理する Method を見つけます。 |
public static final ReflectionUtils.MethodFilter EXCEPTION_HANDLER_METHODS
@ExceptionHandler メソッドを選択するためのフィルター。public ExceptionHandlerMethodResolver(java.lang.Class<?> handlerType)
ExceptionHandler メソッドを見つけるコンストラクター。handlerType - イントロスペクトする型 public boolean hasExceptionMappings()
@Nullable public java.lang.reflect.Method resolveMethod(java.lang.Exception exception)
Method を見つけます。複数の一致が見つかった場合は、ExceptionDepthComparator を使用します。exception - 例外 null @Nullable public java.lang.reflect.Method resolveMethodByThrowable(java.lang.Throwable exception)
Method を見つけます。複数の一致が見つかった場合は、ExceptionDepthComparator を使用してください。exception - 例外 null @Nullable public java.lang.reflect.Method resolveMethodByExceptionType(java.lang.Class<? extends java.lang.Throwable> exceptionType)
Method を見つけます。これは、Exception インスタンスが利用できない場合(ツールなど)に役立ちます。exceptionType - 例外型 null