<?php
/**
 * Not found exception for PDFDraft.
 *
 * @package PDFDraft
 */

namespace PDFDraft\Exceptions;

if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly.
}

/**
 * Exception thrown when a requested resource is not found.
 */
class NotFoundException extends ServiceException {

	// phpcs:ignore Generic.CodeAnalysis.UselessOverridingMethod.Found -- Provides default message and code for not found errors.
	/**
	 * Constructor.
	 *
	 * @param string          $message  Exception message.
	 * @param int             $code     Exception code.
	 * @param \Throwable|null $previous Previous exception.
	 */
	public function __construct( string $message = 'Resource not found', int $code = 404, ?\Throwable $previous = null ) { // phpcs:ignore Generic.CodeAnalysis.UselessOverridingMethod.Found -- provides default values
		parent::__construct( $message, $code, $previous );
	}
}
