<?php

declare (strict_types=1);
namespace DropshippingExportFreeVendor\WPDesk\Library\DropshippingExport\Service\Ucp\Checkout\Builder;

use DropshippingExportFreeVendor\WPDesk\Library\DropshippingExport\Service\Ucp\Checkout\Violations\CheckoutError;
/**
 * Thrown when cart setup fails with a hard error.
 */
final class CartSetupException extends \Exception
{
    private CheckoutError $error;
    public function __construct(CheckoutError $error)
    {
        $this->error = $error;
        parent::__construct($error->get_content());
    }
    public function get_error(): CheckoutError
    {
        return $this->error;
    }
}
