✘✘ GRAYBYTE WORDPRESS FILE MANAGER ✘✘

​🇳​​🇦​​🇲​​🇪♯➤ webm004.cluster127.gra.hosting.ovh.net ​🇻​♯➤ 6.18.42-ovh-vps-grsec-zfs+ #1 SMP 🇾​♯➤ 2026

𝗛𝗢𝗠𝗘 𝗜𝗗 ♯➤ 54.36.91.62 ♯➤ 𝗔𝗗𝗠𝗜𝗡 𝗜𝗗 216.73.216.223
𝗢𝗣𝗧𝗜𝗢𝗡𝗦 ♯ CRL ♯➤ 𝗢𝗞 ┃ WGT ♯➤ 𝗢𝗞 ┃ SDO ♯➤ 𝗢𝗙𝗙 ┃ PKEX ♯➤ 𝗢𝗙𝗙
𝗗𝗘𝗔𝗖𝗧𝗜𝗩𝗔𝗧𝗘𝗗 ♯➤ _dyuweyrj4,_dyuweyrj4r,dl

𝗛𝗢𝗠𝗘
𝗖𝗨𝗥𝗥𝗘𝗡𝗧 𝗙𝗜𝗟𝗘 : /home/docteuh/www/values/exceptions//token-request-failed-exception.php
<?php
// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong -- Needed in the folder structure.

namespace Yoast\WP\SEO\MyYoast_Client\Application\Exceptions;

use RuntimeException;
use Throwable;

/**
 * Exception thrown when a token endpoint request fails.
 *
 * Wraps OAuth error codes like `invalid_grant`, `invalid_client`,
 * `invalid_dpop_proof`, etc.
 */
class Token_Request_Failed_Exception extends RuntimeException {

	/**
	 * The OAuth error code from the token endpoint response.
	 *
	 * @var string
	 */
	private $error_code;

	/**
	 * Token_Request_Failed_Exception constructor.
	 *
	 * @param string         $error_code        The OAuth error code.
	 * @param string         $error_description A human-readable description.
	 * @param int            $code              The HTTP status code.
	 * @param Throwable|null $previous          The previous exception.
	 */
	public function __construct( string $error_code, string $error_description = '', int $code = 0, ?Throwable $previous = null ) {
		$this->error_code = $error_code;

		$message = $error_code;
		if ( $error_description !== '' ) {
			$message .= ': ' . $error_description;
		}

		parent::__construct( $message, $code, $previous );
	}

	/**
	 * Returns the OAuth error code.
	 *
	 * @return string
	 */
	public function get_error_code(): string {
		return $this->error_code;
	}

	/**
	 * Creates an exception from a token endpoint response body.
	 *
	 * @param array<string, string> $response_body The parsed JSON response.
	 * @param int                   $status_code   The HTTP status code.
	 *
	 * @return self
	 */
	public static function from_response( array $response_body, int $status_code = 0 ): self {
		return new self(
			( $response_body['error'] ?? 'unknown_error' ),
			( $response_body['error_description'] ?? '' ),
			$status_code,
		);
	}
}


Current_dir [ 𝗪𝗥𝗜𝗧𝗘𝗔𝗕𝗟𝗘 ] Document_root [ 𝗪𝗥𝗜𝗧𝗘𝗔𝗕𝗟𝗘 ]


[ Back ]
𝗡𝗔𝗠𝗘
𝗦𝗜𝗭𝗘
𝗟𝗔𝗦𝗧 𝗧𝗢𝗨𝗖𝗛
𝗨𝗦𝗘𝗥
𝗦𝗧𝗔𝗧𝗨𝗦
𝗙𝗨𝗡𝗖𝗧𝗜𝗢𝗡𝗦
..
--
18 Sep 2026 6.59 PM
docteuh / users
0755
authorization-flow-exception.php
1.342 KB
23 Jun 2026 6.19 PM
docteuh / users
0644
client-authentication-exception.php
0.354 KB
23 Jun 2026 6.19 PM
docteuh / users
0644
discovery-failed-exception.php
0.32 KB
23 Jun 2026 6.19 PM
docteuh / users
0644
icon-redirect-manager.svg
1.299 KB
23 Jun 2026 6.19 PM
docteuh / users
0644
id-token-validation-exception.php
0.489 KB
23 Jun 2026 6.19 PM
docteuh / users
0644
registration-failed-exception.php
0.378 KB
23 Jun 2026 6.19 PM
docteuh / users
0644
server-capability-exception.php
0.469 KB
23 Jun 2026 6.19 PM
docteuh / users
0644
token-request-failed-exception.php
1.8 KB
23 Jun 2026 6.19 PM
docteuh / users
0644
token-storage-exception.php
0.44 KB
23 Jun 2026 6.19 PM
docteuh / users
0644

✘✘ GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME ✘✘
Static GIF Static GIF