Yoast\WP\SEO\Exceptions\OAuth\Tokens

Empty_Property_Exception{}Yoast 1.0

Class Empty_Property_Exception

Хуков нет.

Использование

$Empty_Property_Exception = new Empty_Property_Exception();
// use class methods

Методы

  1. public __construct( $property )

Код Empty_Property_Exception{} Yoast 22.4

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 );
	}
}