Endpoints
1 month ago
Api.php
2 months ago
CustomFieldApiException.php
2 months ago
index.php
2 months ago
CustomFieldApiException.php
25 lines
| 1 | <?php declare(strict_types = 1); |
| 2 | |
| 3 | namespace MailPoet\CustomFields\RestApi; |
| 4 | |
| 5 | if (!defined('ABSPATH')) exit; |
| 6 | |
| 7 | |
| 8 | use MailPoet\API\REST\ApiException; |
| 9 | use Throwable; |
| 10 | |
| 11 | class CustomFieldApiException extends ApiException { |
| 12 | /** |
| 13 | * @param array<string, string> $errors |
| 14 | */ |
| 15 | public function __construct( |
| 16 | string $message, |
| 17 | int $statusCode = 400, |
| 18 | string $errorCode = 'mailpoet_custom_fields_error', |
| 19 | array $errors = [], |
| 20 | ?Throwable $previous = null |
| 21 | ) { |
| 22 | parent::__construct($message, $statusCode, $errorCode, $errors, $previous); |
| 23 | } |
| 24 | } |
| 25 |