Class SetOfThrowables


  • public class SetOfThrowables
    extends Object
    • Method Detail

      • create

        public static SetOfThrowables create​(List<Class<? extends Throwable>> classes)
        Parameters:
        classes - classes to include
        Returns:
        a set of throwables without any additional constraints.
      • includes

        public boolean includes​(Class<? extends Throwable> searchedFor)
        Parameters:
        searchedFor - a class to check
        Returns:
        whether searchedFor is a subtype of (at least) one of the types in this set. Note that subtyping is a reflexive relation, so a type is always a subtype of itself.