PluginProbe
ووسلام – همگام سازی ووکامرس و باسلام / 1.10.19
ووسلام – همگام سازی ووکامرس و باسلام v1.10.19
1.10.19 1.10.20 1.10.18 1.10.17 1.10.15 1.10.14 1.10.13 1.10.12 1.10.10 1.10.9 1.10.8 1.10.7 1.10.6 1.10.5 1.10.4 1.10.3 1.10.2 1.10.1 1.10.0 1.9.2 1.9.1 1.9.0 1.8.8 1.8.5 1.8.6 All 53 releases
← All changes | includes/Jobs/Exceptions/JobException.php +14 -0 1.8.61.10.19 View file →
@@ -7,9 +7,23 @@
7 7 defined('ABSPATH') || exit;
8 8
9 9 abstract class JobException extends Exception
10 10 {
11 + /** @var array|null Raw (decoded) API response body attached to this error, when available. */
12 + protected $responseData = null;
13 +
11 14 abstract public function shouldRetry(): bool;
15 +
16 + public function setResponseData(?array $responseData): self
17 + {
18 + $this->responseData = $responseData;
19 + return $this;
20 + }
21 +
22 + public function getResponseData(): ?array
23 + {
24 + return $this->responseData;
25 + }
12 26
13 27 public function getErrorContext(): array
14 28 {
15 29 return [