<?php

namespace App\Core\Exceptions;

use Exception;
use Illuminate\Http\JsonResponse;

class ProviderException extends ServiceException
{
    public function __construct(
        string $provider = 'vtpass',
        string $message = 'Provider service error',
        ?\Throwable $previous = null
    ) {
        parent::__construct("{$provider}: {$message}", 'PROVIDER_ERROR', 502);
    }
}
