<?php

namespace Velis\Debugger\Dto;

use Velis\Dto\BaseDto;
use Velis\Dto\Validators\ArrayOf;

/**
 * @author Szymon Janaczek <szymon.janaczek@velistech.com>
 */
class DebuggerExceptionDto extends BaseDto
{
    public string $message;
    public int|string $code;
    public string $file;
    public int $line;
    #[ArrayOf(StackTraceItemDto::class)]
    public array $trace;
    public ?DebuggerExceptionDto $previous;
}
