← All changes
|
src/ai/http-request/domain/exceptions/payment-required-exception.php
+8
-7
27.9
→
trunk
View file →
| @@ -21,17 +21,18 @@ | ||
| 21 | 21 | |
| 22 | 22 | /** |
| 23 | 23 | * Payment_Required_Exception constructor. |
| 24 | 24 | * |
| 25 | - * @param string $message The error message. | |
| 26 | - * @param int $code The error status code. | |
| 27 | - * @param string $error_identifier The error code identifier, used to identify a type of error. | |
| 28 | - * @param Throwable| null $previous The previously thrown exception. | |
| 29 | - * @param string[] $missing_licenses The missing plugin licenses. | |
| 25 | + * @param string $message The error message. | |
| 26 | + * @param int $code The error status code. | |
| 27 | + * @param string $error_identifier The error code identifier, used to identify a type of error. | |
| 28 | + * @param Throwable| null $previous The previously thrown exception. | |
| 29 | + * @param string[] $missing_licenses The missing plugin licenses. | |
| 30 | + * @param array<string, string|array<string>> $response_headers The response headers associated with the error. | |
| 30 | 31 | */ |
| 31 | - public function __construct( $message = '', $code = 0, $error_identifier = '', $previous = null, $missing_licenses = [] ) { | |
| 32 | + public function __construct( $message = '', $code = 0, $error_identifier = '', $previous = null, $missing_licenses = [], array $response_headers = [] ) { | |
| 32 | 33 | $this->missing_licenses = $missing_licenses; |
| 33 | - parent::__construct( $message, $code, $error_identifier, $previous ); | |
| 34 | + parent::__construct( $message, $code, $error_identifier, $previous, $response_headers ); | |
| 34 | 35 | } |
| 35 | 36 | |
| 36 | 37 | /** |
| 37 | 38 | * Gets the missing plugin licences. |