InfluxOW/laravel_ddd_ecommerce

View on GitHub
app/Domains/Common/Exceptions/InvalidConfirmationTokenException.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace App\Domains\Common\Exceptions;

use App\Domains\Common\Models\ConfirmationToken;
use Exception;
use Symfony\Component\HttpFoundation\Response;
use Throwable;

final class InvalidConfirmationTokenException extends Exception
{
    public function __construct(public ?ConfirmationToken $token, string $message = '', int $code = Response::HTTP_BAD_REQUEST, ?Throwable $previous = null)
    {
        parent::__construct($message, $code, $previous);
    }
}