provider = $provider; $this->http_status = in_array( $http_status, self::VALID_HTTP_STATUSES, true ) ? $http_status : 503; parent::__construct($message ?: __('AI service is temporarily unavailable.', 'ai-product-tools'), $code, $previous); } /** * Get AI provider name. * * @return string */ public function getProvider(): string { return $this->provider; } /** * Get user-friendly error message. * * @return string */ public function getUserMessage(): string { return __('The AI service is temporarily unavailable. Please try again in a few moments.', 'ai-product-tools'); } }