- 2.x - sites (wip)

- improved ssh error handling
- database soft deletes
This commit is contained in:
Saeed Vaziry
2024-10-04 21:34:07 +02:00
parent ecdba02bc9
commit d1f2add699
64 changed files with 1340 additions and 421 deletions

View File

@ -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;
}
}