PATH:
home
/
niazsaze
/
public_html
/
wp-content
/
plugins
/
wordpress-seo
/
src
/
ai-http-request
/
domain
/
exceptions
<?php // phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong -- Needed in the folder structure. namespace Yoast\WP\SEO\AI_HTTP_Request\Domain\Exceptions; use Exception; use Throwable; /** * Class Remote_Request_Exception */ abstract class Remote_Request_Exception extends Exception { /** * A string error code that can be used to identify a particular type of error. * * @var string */ private $error_identifier; /** * Constructor. * * @param string $message The error message. * @param int $code The error status code. * @param string $error_identifier The error code identifier, used to identify a type of error. * @param Throwable|null $previous The previously thrown exception. */ public function __construct( $message = '', $code = 0, $error_identifier = '', ?Throwable $previous = null ) { parent::__construct( $message, $code, $previous ); $this->error_identifier = (string) $error_identifier; } /** * Returns the error identifier. * * @return string The error identifier. */ public function get_error_identifier(): string { return $this->error_identifier; } }
[-] payment-required-exception.php
[edit]
[-] request-timeout-exception.php
[edit]
[-] not-found-exception.php
[edit]
[-] service-unavailable-exception.php
[edit]
[-] remote-request-exception.php
[edit]
[-] bad-request-exception.php
[edit]
[-] unauthorized-exception.php
[edit]
[-] forbidden-exception.php
[edit]
[-] internal-server-error-exception.php
[edit]
[-] too-many-requests-exception.php
[edit]
[+]
..
[-] wp-request-exception.php
[edit]