<?php

namespace App\Events;

use App\Enums\LogLevelEnum;
use Illuminate\Foundation\Events\Dispatchable;
use Illuminate\Queue\SerializesModels;
use Throwable;

class ExceptionOccurred
{
    use Dispatchable, SerializesModels;

    public function __construct(
        public Throwable $exception,
        public LogLevelEnum $level,
        public string $message,
        /** @var array<string, mixed> */
        public array $context = []
    ) {}
}
