# sync-basalam/1.10.7/includes/Jobs/Exceptions/JobException.php

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

- Page: https://pluginprobe.com/plugins/sync-basalam/1.10.7/code/includes/Jobs/Exceptions/JobException.php
- Raw: https://pluginprobe.com/plugins/sync-basalam/1.10.7/raw/includes/Jobs/Exceptions/JobException.php
- Modified: 2026-08-11T19:30:02+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.7/code/includes/Jobs/Exceptions/JobException.php#L10-L20`.

```php
<?php

namespace SyncBasalam\Jobs\Exceptions;

use Exception;

defined('ABSPATH') || exit;

abstract class JobException extends Exception
{
    /** @var array|null Raw (decoded) API response body attached to this error, when available. */
    protected $responseData = null;

    abstract public function shouldRetry(): bool;

    public function setResponseData(?array $responseData): self
    {
        $this->responseData = $responseData;
        return $this;
    }

    public function getResponseData(): ?array
    {
        return $this->responseData;
    }

    public function getErrorContext(): array
    {
        return [
            'message' => $this->getMessage(),
            'code' => $this->getCode(),
            'file' => $this->getFile(),
            'line' => $this->getLine(),
        ];
    }
}

```
