2025-06-29 18:33:18 +02:00
|
|
|
<?php
|
|
|
|
|
|
2025-08-15 16:39:18 +02:00
|
|
|
namespace Domains\Logging\Events;
|
2025-06-29 18:33:18 +02:00
|
|
|
|
2025-08-15 16:39:18 +02:00
|
|
|
use Domains\Logging\Enums\LogLevelEnum;
|
2025-06-29 18:33:18 +02:00
|
|
|
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,
|
2025-07-07 00:51:32 +02:00
|
|
|
/** @var array<string, mixed> */
|
2025-06-29 18:33:18 +02:00
|
|
|
public array $context = []
|
|
|
|
|
) {
|
|
|
|
|
}
|
|
|
|
|
}
|