Allow specifying exception types to be ignored

This is a convenient way to prevent certain exception types to be retried which is currently only achievable through a custom `retry_criteria_check` block.