@@ -0,0 +1,828 @@
+package com.github.kaaveland.tryagain;%0A%0Aimport java.util.Arrays;%0Aimport java.util.Collections;%0Aimport java.util.List;%0A%0Apublic class InstancesOf implements ExceptionMatcher %7B%0A    private final List%3CClass%3C? extends Exception%3E%3E exceptionTypes;%0A%0A    public InstancesOf(final List%3CClass%3C? extends Exception%3E%3E exceptionTypes) %7B%0A        this.exceptionTypes = Collections.unmodifiableList(exceptionTypes);%0A    %7D%0A%0A    @SafeVarargs%0A    public InstancesOf(Class%3C? extends Exception%3E... exceptionTypes) %7B%0A        this(Arrays.asList(exceptionTypes));%0A    %7D%0A%0A    @Override%0A    public boolean matches(final Exception exception) %7B%0A        for (Class%3C? extends Exception%3E exceptionType : exceptionTypes) %7B%0A            if (exceptionType.isInstance(exception)) %7B%0A                return true;%0A            %7D%0A        %7D%0A        return false;%0A    %7D%0A%0A%7D%0A

Add InstancesOf to match exceptions on instance.