<?php
/**
 * BookiFlex Cart Extension
 *
 * @package    BookiFlex
 * @subpackage Cart
 * @author     BookiFlex
 * @copyright  Copyright (c) 2025 BookiFlex
 * @license    GPL-2.0-or-later
 *
 * @link       https://bookiflex.com
 */

declare(strict_types=1);

namespace BookiFlex\Extensions\Cart\Exception;

use BookiFlex\Core\Exception\DomainException;

defined( 'ABSPATH' ) || exit;

class CartNotFoundException extends DomainException
{
    public function __construct(
        string $message = 'Cart not found',
        int $code = 404,
        ?\Exception $previous = null,
        array $context = []
    ) {
        $context['errorCode'] = $context['errorCode'] ?? 'cart_not_found';
        parent::__construct($message, $code, $previous, $context);
    }
}
