# wordpress-seo/28.5/src/exceptions/oauth/tokens/empty-property-exception.php

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

- Page: https://pluginprobe.com/plugins/wordpress-seo/28.5/code/src/exceptions/oauth/tokens/empty-property-exception.php
- Raw: https://pluginprobe.com/plugins/wordpress-seo/28.5/raw/src/exceptions/oauth/tokens/empty-property-exception.php
- Modified: 2021-12-01T15:31:20+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/28.5/code/src/exceptions/oauth/tokens/empty-property-exception.php#L10-L20`.

```php
<?php

namespace Yoast\WP\SEO\Exceptions\OAuth\Tokens;

use Exception;

/**
 * Class Empty_Property_Exception
 */
class Empty_Property_Exception extends Exception {

	/**
	 * Empty_Property_Exception constructor.
	 *
	 * @param string $property The property that is empty.
	 */
	public function __construct( $property ) {
		parent::__construct( \sprintf( 'Token creation failed. Property `%s` cannot be empty.', $property ), 400 );
	}
}

```
