RetryOnException actually uses the given exception class.