# wordpress-seo/28.2/src/exceptions/indexable/not-built-exception.php

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

- Page: https://pluginprobe.com/plugins/wordpress-seo/28.2/code/src/exceptions/indexable/not-built-exception.php
- Raw: https://pluginprobe.com/plugins/wordpress-seo/28.2/raw/src/exceptions/indexable/not-built-exception.php
- Modified: 2026-02-17T12:17:50+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.2/code/src/exceptions/indexable/not-built-exception.php#L10-L20`.

```php
<?php

namespace Yoast\WP\SEO\Exceptions\Indexable;

/**
 * Class Not_Built_Exception
 */
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.",
		);
	}
}

```
