<?php

namespace App\Exceptions;

use Exception;
use Illuminate\Support\Facades\Log;

class ApiConnectionException extends Exception
{
    public function __construct($message = "Failed to connect to API", $code = 0, Exception $previous = null)
    {
        parent::__construct($message, $code, $previous);
    }

    public function report()
    {
        Log::error("API Connection Error: " . $this->message);
    }
}
