<?php
declare(strict_types=1);

namespace App\Framework\Core\Events;

final readonly class ErrorOccurred
{
    public function __construct(
        public \Throwable $error,
        public string $context = '',
        public ?string $requestId = null,
        public \DateTimeImmutable $occurredAt = new \DateTimeImmutable()
    ) {}
}
