org.springframework.util

Class ExceptionTypeFilter



  • public class ExceptionTypeFilter
    extends InstanceFilter<java.lang.Class<? extends java.lang.Throwable>>
    An InstanceFilter implementation that handles exception types. A type will match against a given candidate if it is assignable to that candidate.
    Since:
    4.1
    Author:
    Stephane Nicoll
    • Constructor Summary

      Constructors 
      Constructor and Description
      ExceptionTypeFilter(java.util.Collection<? extends java.lang.Class<? extends java.lang.Throwable>> includes, java.util.Collection<? extends java.lang.Class<? extends java.lang.Throwable>> excludes, boolean matchIfEmpty) 
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      protected boolean match(java.lang.Class<? extends java.lang.Throwable> instance, java.lang.Class<? extends java.lang.Throwable> candidate)
      Determine if the specified instance is equal to the specified candidate.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • ExceptionTypeFilter

        public ExceptionTypeFilter(java.util.Collection<? extends java.lang.Class<? extends java.lang.Throwable>> includes,
                                   java.util.Collection<? extends java.lang.Class<? extends java.lang.Throwable>> excludes,
                                   boolean matchIfEmpty)
    • Method Detail

      • match

        protected boolean match(java.lang.Class<? extends java.lang.Throwable> instance,
                                java.lang.Class<? extends java.lang.Throwable> candidate)
        Description copied from class: InstanceFilter
        Determine if the specified instance is equal to the specified candidate.
        Overrides:
        match in class InstanceFilter<java.lang.Class<? extends java.lang.Throwable>>
        Parameters:
        instance - the instance to handle
        candidate - a candidate defined by this filter
        Returns:
        true if the instance matches the candidate