Files
panel/app/Exceptions/Repository/Proxmox/ProxmoxConnectionException.php
2023-11-06 04:20:25 +00:00

16 lines
512 B
PHP

<?php
namespace Convoy\Exceptions\Repository\Proxmox;
use Illuminate\Http\Client\Response;
use Illuminate\Http\Client\RequestException;
use Convoy\Exceptions\Repository\RepositoryException;
class ProxmoxConnectionException extends RepositoryException
{
public function __construct(Response $response, RequestException $exception)
{
parent::__construct($response->reason() . PHP_EOL . $exception->getMessage() . PHP_EOL . $exception->getTraceAsString(), $exception->getCode(), $exception);
}
}