vito/app/Exceptions/SSHError.php
Saeed Vaziry d1f2add699 - 2.x - sites (wip)
- improved ssh error handling
- database soft deletes
2024-10-04 21:34:07 +02:00

25 lines
460 B
PHP
Executable File

<?php
namespace App\Exceptions;
use App\Models\ServerLog;
use Exception;
use Throwable;
class SSHError extends Exception
{
protected ?ServerLog $log;
public function __construct(string $message = '', int $code = 0, ?Throwable $previous = null, ?ServerLog $log = null)
{
$this->log = $log;
parent::__construct($message, $code, $previous);
}
public function getLog(): ?ServerLog
{
return $this->log;
}
}