# sync-basalam/1.10.0/includes/Jobs/Exceptions/RetryableException.php

ووسلام – همگام سازی ووکامرس و باسلام, version 1.10.0. 40 lines.

- Page: https://pluginprobe.com/plugins/sync-basalam/1.10.0/code/includes/Jobs/Exceptions/RetryableException.php
- Raw: https://pluginprobe.com/plugins/sync-basalam/1.10.0/raw/includes/Jobs/Exceptions/RetryableException.php
- Modified: 2026-07-11T07:54:58+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/sync-basalam/1.10.0/code/includes/Jobs/Exceptions/RetryableException.php#L10-L20`.

```php
<?php

namespace SyncBasalam\Jobs\Exceptions;

defined('ABSPATH') || exit;


class RetryableException extends JobException
{
    public function shouldRetry(): bool
    {
        return true;
    }

    public static function apiTimeout(string $message = 'درخواست با تایم اوت مواجه شد.'): self
    {
        return new self($message, 408);
    }

    public static function networkError(string $message = 'خطای ارتباط شبکه ای'): self
    {
        return new self($message, 503);
    }

    public static function rateLimit(string $message = 'خطای rate limit رخ داد.'): self
    {
        return new self($message, 429);
    }

    public static function serverError(string $message = 'خطای سرور'): self
    {
        return new self($message, 500);
    }

    public static function temporary(string $message = 'خطای موقتی'): self
    {
        return new self($message, 0);
    }
}

```
