<?php
declare(strict_types=1);

namespace SafeTun\Backend\Exception;

final class PublicApiException extends \RuntimeException
{
    public function __construct(
        public readonly string $errorCode,
        public readonly int $httpStatus,
        string $internalMessage = '',
    ) {
        parent::__construct($internalMessage !== '' ? $internalMessage : $errorCode);
    }
}
