mirror of
https://github.com/vitodeploy/vito.git
synced 2025-04-21 19:01:37 +00:00
25 lines
460 B
PHP
Executable File
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;
|
|
}
|
|
}
|