# wordpress-seo/trunk/src/exceptions/oauth/tokens/failed-storage-exception.php

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

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

```php
<?php

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

use Exception;

/**
 * Class Failed_Storage_Exception
 */
class Failed_Storage_Exception extends Exception {

	public const DEFAULT_MESSAGE = 'Token storing failed. Please try again.';

	/**
	 * Failed_Storage_Exception constructor.
	 *
	 * @param string $reason The reason why token storage failed. Optional.
	 */
	public function __construct( $reason = '' ) {
		$message = ( $reason ) ? \sprintf( 'Token storing failed. Reason: %s. Please try again', $reason ) : self::DEFAULT_MESSAGE;

		parent::__construct( $message, 500 );
	}
}

```
