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

Yoast / wordpress-seo / 8902429d51b3f7824505257cd9f756866d74786b

29 May 2025 07:09AM UTC coverage: 51.845% (-5.5%) from 57.298%
8902429d51b3f7824505257cd9f756866d74786b

push

github

web-flow
Merge pull request #22264 from Yoast/move-and-refactor-ai-generator-helper

Move and refactor ai generator helper

8230 of 14678 branches covered (56.07%)

Branch coverage included in aggregate %.

0 of 741 new or added lines in 38 files covered. (0.0%)

29750 of 58579 relevant lines covered (50.79%)

40756.97 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

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

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

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

32
        /**
33
         * Returns the error identifier.
34
         *
35
         * @return string The error identifier.
36
         */
NEW
37
        public function get_error_identifier(): string {
×
NEW
38
                return $this->error_identifier;
×
39
        }
40
}
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