isRetryable property
Returns true if the error is transient and may be retried.
Retryable SQLSTATE families:
08xxx— connection errors (network / login timeout).40001— serialization failure / deadlock (most databases).40P01— PostgreSQL deadlock detected.HYT00— timeout expired (ODBC generic).HYT01— connection timeout expired (ODBC generic).
Subclasses that always represent transient conditions (e.g.
ResourceLimitReachedError) override this to return true.
Implementation
@override
bool get isRetryable => true;