• File: complete-hello-world-task-exception.php
  • Full Path: /home/docteuh/www/serverhttpson/exceptions/complete-hello-world-task-exception.php
  • Date Modified: 06/23/2026 4:19 PM
  • File size: 493 bytes
  • MIME-type: text/x-php
  • Charset: utf-8
<?php

// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong -- Needed in the folder structure.
namespace Yoast\WP\SEO\Task_List\Domain\Exceptions;

use Exception;

/**
 * Exception for when we can't complete the hello world task.
 */
class Complete_Hello_World_Task_Exception extends Exception {

	/**
	 * Constructor of the exception.
	 */
	public function __construct() {
		parent::__construct( \esc_html__( 'Failed to delete the Hello World post.', 'wordpress-seo' ), 400 );
	}
}