pub fn should_retry(error: &Error) -> bool
Helper function to determine if a particular error condition is retryable.
For best results, database operations should be automatically retried if one of these errors is returned.