22 lines
410 B
PHP
22 lines
410 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
namespace App\Events;
|
||
|
|
|
||
|
|
use App\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,
|
||
|
|
public array $context = []
|
||
|
|
) {
|
||
|
|
}
|
||
|
|
}
|