point-tools/src/Exception/Factory/Blog/InvalidPostDataException.php

18 lines
364 B
PHP
Raw Normal View History

2023-04-01 16:30:48 +00:00
<?php
declare(strict_types=1);
namespace App\Exception\Factory\Blog;
use App\DTO\Api\Post;
class InvalidPostDataException extends InvalidDataException
{
public function __construct(
public readonly Post $post,
$code = 0,
\Exception $previous = null
) {
parent::__construct('Invalid post data', $code, $previous);
}
}