mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-01 14:06:15 +00:00
- 2.x - sites (wip)
- improved ssh error handling - database soft deletes
This commit is contained in:
@ -2,9 +2,23 @@
|
||||
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user