PluginProbe ʕ •ᴥ•ʔ
Booking for Appointments and Events Calendar – Amelia / trunk
Booking for Appointments and Events Calendar – Amelia vtrunk
2.4.4 2.4.3 2.4.2 2.4.1 2.4 trunk 1.2.1 1.2.10 1.2.11 1.2.12 1.2.13 1.2.14 1.2.15 1.2.16 1.2.17 1.2.18 1.2.19 1.2.2 1.2.20 1.2.21 1.2.22 1.2.23 1.2.24 1.2.25 1.2.26 1.2.27 1.2.28 1.2.29 1.2.3 1.2.30 1.2.31 1.2.32 1.2.33 1.2.34 1.2.35 1.2.36 1.2.37 1.2.38 1.2.4 1.2.5 1.2.6 1.2.7 1.2.8 1.2.9 2.0 2.0.1 2.0.2 2.1 2.1.1 2.1.2 2.1.3 2.2 2.2.1 2.3
ameliabooking / src / Infrastructure / Services / Mailchimp / MailchimpRequestException.php
ameliabooking / src / Infrastructure / Services / Mailchimp Last commit date
AbstractMailchimpService.php 5 months ago MailchimpNotFoundException.php 5 months ago MailchimpRequestException.php 5 months ago StarterMailchimpService.php 5 months ago
MailchimpRequestException.php
49 lines
1 <?php
2
3 namespace AmeliaBooking\Infrastructure\Services\Mailchimp;
4
5 use RuntimeException;
6
7 class MailchimpRequestException extends RuntimeException
8 {
9 private string $endpoint;
10 private string $method;
11 private int $status;
12 private ?string $responseBody;
13
14 public function __construct(
15 string $message,
16 string $endpoint,
17 string $method,
18 int $status = 0,
19 ?string $responseBody = null,
20 ?\Throwable $previous = null
21 ) {
22 parent::__construct($message, 0, $previous);
23 $this->endpoint = $endpoint;
24 $this->method = $method;
25 $this->status = $status;
26 $this->responseBody = $responseBody;
27 }
28
29 public function getEndpoint(): string
30 {
31 return $this->endpoint;
32 }
33
34 public function getMethod(): string
35 {
36 return $this->method;
37 }
38
39 public function getStatus(): int
40 {
41 return $this->status;
42 }
43
44 public function getResponseBody(): ?string
45 {
46 return $this->responseBody;
47 }
48 }
49