OnExceptionTypes implements RetryStrategy
Read onlyYes
FinalYes
Interfaces
Methods
- __construct() : mixed
- shouldRetry() : bool
Methods
__construct()
public
__construct(array<string|int, Throwable>> $exceptionTypes, int $limit) : mixed
Parameters
- $exceptionTypes : array<string|int, Throwable>>
- $limit : int
shouldRetry()
public
shouldRetry(Throwable $exception, int $attemptNumber) : bool
Parameters
- $exception : Throwable
- $attemptNumber : int