# wordpress-seo/28.4/src/exceptions/oauth/tokens/empty-token-exception.php

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

- Page: https://pluginprobe.com/plugins/wordpress-seo/28.4/code/src/exceptions/oauth/tokens/empty-token-exception.php
- Raw: https://pluginprobe.com/plugins/wordpress-seo/28.4/raw/src/exceptions/oauth/tokens/empty-token-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.4/code/src/exceptions/oauth/tokens/empty-token-exception.php#L10-L20`.

```php
<?php

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

use Exception;

/**
 * Class Empty_Token_Exception
 */
class Empty_Token_Exception extends Exception {

	/**
	 * Empty_Token_Exception constructor.
	 */
	public function __construct() {
		parent::__construct( 'Token usage failed. Token is empty.', 400 );
	}
}

```
