Yoast\WP\SEO\Exceptions\Indexable

Not_Built_Exception{}Yoast 1.0

Class Not_Built_Exception

Хуков нет.

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

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

Методы

  1. public static invalid_object_id( $object_id )

Код Not_Built_Exception{} Yoast 22.3

class Not_Built_Exception extends Indexable_Exception {

	/**
	 * Creates an exception that should be thrown when an indexable
	 * was not built because of an invalid object id.
	 *
	 * @param int $object_id The invalid object id.
	 *
	 * @return Not_Built_Exception The exception.
	 */
	public static function invalid_object_id( $object_id ) {
		return new self(
			"Indexable was not built because it had an invalid object id of $object_id."
		);
	}
}