<?php
namespace App\Exceptions;

use RuntimeException;

class ContestException extends RuntimeException
{
    public function __construct(
        string $message,
        private readonly string $etapa = 'geral',
        ?\Throwable $previous = null
    ) {
        parent::__construct($message, 0, $previous);
    }

    public function getEtapa(): string { return $this->etapa; }
}
