<?php

namespace App\Exceptions;

use RuntimeException;

class DomainException extends RuntimeException
{
    public function __construct(
        public readonly string $errorCode,
        string $message,
        public readonly int $status = 422,
        public readonly ?array $fields = null,
        public readonly array $context = [],
    ) {
        parent::__construct($message);
    }
}
