• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Yoast / wordpress-seo / 9594812bf110d67afe78816058eb15ec830063d2

15 Jul 2025 10:16AM UTC coverage: 52.595% (-1.0%) from 53.638%
9594812bf110d67afe78816058eb15ec830063d2

Pull #22432

github

web-flow
Merge branch 'trunk' into feature/ai-generator-in-free
Pull Request #22432: Merge feature branch into trunk

8341 of 15027 branches covered (55.51%)

Branch coverage included in aggregate %.

382 of 1769 new or added lines in 122 files covered. (21.59%)

2 existing lines in 2 files now uncovered.

30934 of 59648 relevant lines covered (51.86%)

40029.26 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/ai-http-request/domain/exceptions/remote-request-exception.php
1
<?php
2
// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong -- Needed in the folder structure.
3
namespace Yoast\WP\SEO\AI_HTTP_Request\Domain\Exceptions;
4

5
use Exception;
6
use Throwable;
7

8
/**
9
 * Class Remote_Request_Exception
10
 */
11
abstract class Remote_Request_Exception extends Exception {
12

13
        /**
14
         * A string error code that can be used to identify a particular type of error.
15
         *
16
         * @var string
17
         */
18
        private $error_identifier;
19

20
        /**
21
         * Constructor.
22
         *
23
         * @param string         $message          The error message.
24
         * @param int            $code             The error status code.
25
         * @param string         $error_identifier The error code identifier, used to identify a type of error.
26
         * @param Throwable|null $previous         The previously thrown exception.
27
         */
NEW
28
        public function __construct( $message = '', $code = 0, $error_identifier = '', ?Throwable $previous = null ) {
×
NEW
29
                parent::__construct( $message, $code, $previous );
×
NEW
30
                $this->error_identifier = (string) $error_identifier;
×
31
        }
32

33
        /**
34
         * Returns the error identifier.
35
         *
36
         * @return string The error identifier.
37
         */
NEW
38
        public function get_error_identifier(): string {
×
NEW
39
                return $this->error_identifier;
×
40
        }
41
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc