src/Exceptions/ProductNotFoundException.php
<?php
namespace EscolaLms\Cart\Exceptions;
use Symfony\Component\HttpKernel\Exception\UnprocessableEntityHttpException;
use Throwable;
class ProductNotFoundException extends UnprocessableEntityHttpException
{
public function __construct($message = "Product Not Found", $code = 422, ?Throwable $previous = null)
{
parent::__construct($message, $previous, $code);
}
}