public boolean hasException ( Class < ? extends Throwable > type ) { for ( Throwable exception : exceptions ) { if ( type . isInstance ( exception ) ) { return true ; } } return false ; }
Returns true if this instance contains an exception of the given type .