# wordpress-seo/trunk/src/introductions/domain/invalid-user-id-exception.php

Yoast SEO – Advanced SEO with real-time guidance and built-in AI, version trunk. 30 lines.

- Page: https://pluginprobe.com/plugins/wordpress-seo/trunk/code/src/introductions/domain/invalid-user-id-exception.php
- Raw: https://pluginprobe.com/plugins/wordpress-seo/trunk/raw/src/introductions/domain/invalid-user-id-exception.php
- Modified: 2024-01-19T10:31:02+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/wordpress-seo/trunk/code/src/introductions/domain/invalid-user-id-exception.php#L10-L20`.

```php
<?php

namespace Yoast\WP\SEO\Introductions\Domain;

use InvalidArgumentException;
use Throwable;

/**
 * Invalid user ID.
 */
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 );
	}
}

```
