| 1 |
<?php |
| 2 |
|
| 3 |
namespace Yoast\WP\SEO\Exceptions\OAuth\Tokens; |
| 4 |
|
| 5 |
use Exception; |
| 6 |
|
| 7 |
/** |
| 8 |
* Class Empty_Property_Exception |
| 9 |
*/ |
| 10 |
class Empty_Property_Exception extends Exception { |
| 11 |
|
| 12 |
/** |
| 13 |
* Empty_Property_Exception constructor. |
| 14 |
* |
| 15 |
* @param string $property The property that is empty. |
| 16 |
*/ |
| 17 |
public function __construct( $property ) { |
| 18 |
parent::__construct( \sprintf( 'Token creation failed. Property `%s` cannot be empty.', $property ), 400 ); |
| 19 |
} |
| 20 |
} |
| 21 |
|