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

Yoast / wordpress-seo / 512321137492bbae6803200cb9598c33529731ee

27 May 2025 10:27AM UTC coverage: 51.51% (-5.5%) from 56.997%
512321137492bbae6803200cb9598c33529731ee

Pull #22264

github

web-flow
Merge af47e48fa into 196182b4e
Pull Request #22264: Move and refactor ai generator helper

7875 of 14311 branches covered (55.03%)

Branch coverage included in aggregate %.

0 of 277 new or added lines in 16 files covered. (0.0%)

29138 of 57545 relevant lines covered (50.64%)

41488.84 hits per line

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

0.0
/src/ai-http-request/domain/exceptions/wp-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
 * Class to manage an error response in wp_remote_*() requests.
9
 *
10
 * @phpcs:disable Yoast.NamingConventions.ObjectNameDepth.MaxExceeded
11
 */
12
class WP_Request_Exception extends Exception {
13

14
        /**
15
         * WP_Request_Exception constructor.
16
         *
17
         * @param string          $message  The error message.
18
         * @param Throwable| null $previous The previously thrown exception.
19
         */
NEW
20
        public function __construct( $message = '', $previous = null ) {
×
NEW
21
                parent::__construct( $message, 400, 'WP_HTTP_REQUEST_ERROR', $previous );
×
22
        }
23
}
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

© 2025 Coveralls, Inc