task-not-found-exception.php
<?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 the task is not found.
*/
class Task_Not_Found_Exception extends Exception {
/**
* Constructor of the exception.
*/
public function __construct() {
parent::__construct( 'Task not found', 404 );
}
}