类 ExceptionTypeFilter

java.lang.Object
cn.taketoday.util.InstanceFilter<Class<? extends Throwable>>
cn.taketoday.util.ExceptionTypeFilter

public class ExceptionTypeFilter extends InstanceFilter<Class<? extends Throwable>>
An InstanceFilter implementation that handles exception types. A type will match against a given candidate if it is assignable to that candidate.
从以下版本开始:
4.0 2022/3/9 20:40
作者:
Stephane Nicoll, Harry Yang
  • 构造器详细资料

  • 方法详细资料

    • match

      protected boolean match(Class<? extends Throwable> instance, Class<? extends Throwable> candidate)
      从类复制的说明: InstanceFilter
      Determine if the specified instance is equal to the specified candidate.
      覆盖:
      match 在类中 InstanceFilter<Class<? extends Throwable>>
      参数:
      instance - the instance to handle
      candidate - a candidate defined by this filter
      返回:
      true if the instance matches the candidate