Yoast\WP\SEO\Introductions\Domain

Invalid_User_Id_Exception{}Yoast 1.0

Invalid user ID.

Хуков нет.

Использование

$Invalid_User_Id_Exception = new Invalid_User_Id_Exception();
// use class methods

Методы

  1. public __construct(

Код Invalid_User_Id_Exception{} Yoast 24.4

class Invalid_User_Id_Exception extends InvalidArgumentException {

	/**
	 * Constructs the exception.
	 *
	 * @link https://php.net/manual/en/exception.construct.php
	 *
	 * @param string         $message  Optional. The Exception message to throw.
	 * @param int            $code     Optional. The Exception code.
	 * @param Throwable|null $previous Optional. The previous throwable used for the exception chaining.
	 */
	public function __construct( // phpcs:ignore Generic.CodeAnalysis.UselessOverridingMethod.Found -- Reason: A default message is used.
		$message = 'Invalid User ID',
		$code = 0,
		$previous = null
	) {
		parent::__construct( $message, $code, $previous );
	}
}