awaitility/src/main/java/org/awaitility/core/ConditionFactory.java
public ConditionFactory ignoreException(final Class<? extends Throwable> exceptionType) {
        if (exceptionType == null) {
            throw new IllegalArgumentException("exception cannot be null");
        }
        return new ConditionFactory(alias, timeoutConstraint, pollInterval, pollDelay, catchUncaughtExceptions,
                new PredicateExceptionIgnorer(new Predicate<Throwable>() {
                    public boolean matches(Throwable e) {
                        return e.getClass().equals(exceptionType);
                    }
                }),
                conditionEvaluationListener, executorLifecycle);
    }
public ConditionFactory ignoreException(final Class<? extends Throwable> exceptionType) {
        if (exceptionType == null) {
            throw new IllegalArgumentException("exception cannot be null");
        }
        return new ConditionFactory(alias, timeoutConstraint, pollInterval, pollDelay, catchUncaughtExceptions,
                new PredicateExceptionIgnorer(new Predicate<Throwable>() {
                    public boolean matches(Throwable e) {
                        return e.getClass().equals(exceptionType);
                    }
                }),
                conditionEvaluationListener, executorLifecycle);
    }
public ConditionFactory ignoreException ( final Class < ? extends Throwable > exceptionType ) { if ( exceptionType == null ) { throw new IllegalArgumentException ( "exception cannot be null" ) ; } return new ConditionFactory ( alias , timeoutConstraint , pollInterval , pollDelay , catchUncaughtExceptions , new PredicateExceptionIgnorer ( new Predicate < Throwable > ( ) { public boolean matches ( Throwable e ) { return e . getClass ( ) . equals ( exceptionType ) ; } } ) , conditionEvaluationListener , executorLifecycle ) ; }
Instruct Awaitility to ignore a specific exception and <i>no</i> subclasses of this exception.
Exceptions will be treated as evaluating to <code>false</code>.
This is useful in situations where the evaluated conditions may temporarily throw exceptions.
<p>If you want to ignore a subtypes of this exception then use {@link #ignoreExceptionsInstanceOf(Class)}} </p>

@param exceptionType The exception type to ignore
@return the condition factory
Instruct Awaitility to ignore a specific exception and <i > no< / i > subclasses of this exception . Exceptions will be treated as evaluating to <code > false< / code > . This is useful in situations where the evaluated conditions may temporarily throw exceptions . <p > If you want to ignore a subtypes of this exception then use { @link #ignoreExceptionsInstanceOf ( Class ) }} < / p >