mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-02 14:36:17 +00:00
init
This commit is contained in:
10
app/Exceptions/CannotDeployKey.php
Executable file
10
app/Exceptions/CannotDeployKey.php
Executable file
@ -0,0 +1,10 @@
|
||||
<?php
|
||||
|
||||
namespace App\Exceptions;
|
||||
|
||||
use Exception;
|
||||
|
||||
class CannotDeployKey extends Exception
|
||||
{
|
||||
//
|
||||
}
|
10
app/Exceptions/ComposerInstallFailed.php
Normal file
10
app/Exceptions/ComposerInstallFailed.php
Normal file
@ -0,0 +1,10 @@
|
||||
<?php
|
||||
|
||||
namespace App\Exceptions;
|
||||
|
||||
use Exception;
|
||||
|
||||
class ComposerInstallFailed extends Exception
|
||||
{
|
||||
//
|
||||
}
|
10
app/Exceptions/CouldNotConnectToProvider.php
Normal file
10
app/Exceptions/CouldNotConnectToProvider.php
Normal file
@ -0,0 +1,10 @@
|
||||
<?php
|
||||
|
||||
namespace App\Exceptions;
|
||||
|
||||
use Exception;
|
||||
|
||||
class CouldNotConnectToProvider extends Exception
|
||||
{
|
||||
//
|
||||
}
|
10
app/Exceptions/ErrorUpdatingRedirects.php
Normal file
10
app/Exceptions/ErrorUpdatingRedirects.php
Normal file
@ -0,0 +1,10 @@
|
||||
<?php
|
||||
|
||||
namespace App\Exceptions;
|
||||
|
||||
use Exception;
|
||||
|
||||
class ErrorUpdatingRedirects extends Exception
|
||||
{
|
||||
//
|
||||
}
|
10
app/Exceptions/FailedToDeleteServer.php
Normal file
10
app/Exceptions/FailedToDeleteServer.php
Normal file
@ -0,0 +1,10 @@
|
||||
<?php
|
||||
|
||||
namespace App\Exceptions;
|
||||
|
||||
use Exception;
|
||||
|
||||
class FailedToDeleteServer extends Exception
|
||||
{
|
||||
//
|
||||
}
|
10
app/Exceptions/FailedToDeployGitHook.php
Normal file
10
app/Exceptions/FailedToDeployGitHook.php
Normal file
@ -0,0 +1,10 @@
|
||||
<?php
|
||||
|
||||
namespace App\Exceptions;
|
||||
|
||||
use Exception;
|
||||
|
||||
class FailedToDeployGitHook extends Exception
|
||||
{
|
||||
//
|
||||
}
|
10
app/Exceptions/FailedToDestroyGitHook.php
Normal file
10
app/Exceptions/FailedToDestroyGitHook.php
Normal file
@ -0,0 +1,10 @@
|
||||
<?php
|
||||
|
||||
namespace App\Exceptions;
|
||||
|
||||
use Exception;
|
||||
|
||||
class FailedToDestroyGitHook extends Exception
|
||||
{
|
||||
//
|
||||
}
|
10
app/Exceptions/FailedToInstallWordpress.php
Normal file
10
app/Exceptions/FailedToInstallWordpress.php
Normal file
@ -0,0 +1,10 @@
|
||||
<?php
|
||||
|
||||
namespace App\Exceptions;
|
||||
|
||||
use Exception;
|
||||
|
||||
class FailedToInstallWordpress extends Exception
|
||||
{
|
||||
//
|
||||
}
|
10
app/Exceptions/GitRepositoryNotFound.php
Executable file
10
app/Exceptions/GitRepositoryNotFound.php
Executable file
@ -0,0 +1,10 @@
|
||||
<?php
|
||||
|
||||
namespace App\Exceptions;
|
||||
|
||||
use Exception;
|
||||
|
||||
class GitRepositoryNotFound extends Exception
|
||||
{
|
||||
//
|
||||
}
|
48
app/Exceptions/Handler.php
Normal file
48
app/Exceptions/Handler.php
Normal file
@ -0,0 +1,48 @@
|
||||
<?php
|
||||
|
||||
namespace App\Exceptions;
|
||||
|
||||
use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler;
|
||||
use Throwable;
|
||||
|
||||
class Handler extends ExceptionHandler
|
||||
{
|
||||
/**
|
||||
* A list of exception types with their corresponding custom log levels.
|
||||
*
|
||||
* @var array<class-string<\Throwable>, \Psr\Log\LogLevel::*>
|
||||
*/
|
||||
protected $levels = [
|
||||
//
|
||||
];
|
||||
|
||||
/**
|
||||
* A list of the exception types that are not reported.
|
||||
*
|
||||
* @var array<int, class-string<\Throwable>>
|
||||
*/
|
||||
protected $dontReport = [
|
||||
//
|
||||
];
|
||||
|
||||
/**
|
||||
* A list of the inputs that are never flashed to the session on validation exceptions.
|
||||
*
|
||||
* @var array<int, string>
|
||||
*/
|
||||
protected $dontFlash = [
|
||||
'current_password',
|
||||
'password',
|
||||
'password_confirmation',
|
||||
];
|
||||
|
||||
/**
|
||||
* Register the exception handling callbacks for the application.
|
||||
*/
|
||||
public function register(): void
|
||||
{
|
||||
$this->reportable(function (Throwable $e) {
|
||||
//
|
||||
});
|
||||
}
|
||||
}
|
10
app/Exceptions/InstallationFailed.php
Normal file
10
app/Exceptions/InstallationFailed.php
Normal file
@ -0,0 +1,10 @@
|
||||
<?php
|
||||
|
||||
namespace App\Exceptions;
|
||||
|
||||
use Exception;
|
||||
|
||||
class InstallationFailed extends Exception
|
||||
{
|
||||
//
|
||||
}
|
10
app/Exceptions/ProcessFailed.php
Normal file
10
app/Exceptions/ProcessFailed.php
Normal file
@ -0,0 +1,10 @@
|
||||
<?php
|
||||
|
||||
namespace App\Exceptions;
|
||||
|
||||
use Exception;
|
||||
|
||||
class ProcessFailed extends Exception
|
||||
{
|
||||
//
|
||||
}
|
10
app/Exceptions/RepositoryNotFound.php
Normal file
10
app/Exceptions/RepositoryNotFound.php
Normal file
@ -0,0 +1,10 @@
|
||||
<?php
|
||||
|
||||
namespace App\Exceptions;
|
||||
|
||||
use Exception;
|
||||
|
||||
class RepositoryNotFound extends Exception
|
||||
{
|
||||
//
|
||||
}
|
10
app/Exceptions/RepositoryPermissionDenied.php
Normal file
10
app/Exceptions/RepositoryPermissionDenied.php
Normal file
@ -0,0 +1,10 @@
|
||||
<?php
|
||||
|
||||
namespace App\Exceptions;
|
||||
|
||||
use Exception;
|
||||
|
||||
class RepositoryPermissionDenied extends Exception
|
||||
{
|
||||
//
|
||||
}
|
10
app/Exceptions/SSHAuthenticationError.php
Executable file
10
app/Exceptions/SSHAuthenticationError.php
Executable file
@ -0,0 +1,10 @@
|
||||
<?php
|
||||
|
||||
namespace App\Exceptions;
|
||||
|
||||
use Exception;
|
||||
|
||||
class SSHAuthenticationError extends Exception
|
||||
{
|
||||
//
|
||||
}
|
10
app/Exceptions/SSHConnectionError.php
Executable file
10
app/Exceptions/SSHConnectionError.php
Executable file
@ -0,0 +1,10 @@
|
||||
<?php
|
||||
|
||||
namespace App\Exceptions;
|
||||
|
||||
use Exception;
|
||||
|
||||
class SSHConnectionError extends Exception
|
||||
{
|
||||
//
|
||||
}
|
10
app/Exceptions/SSLCreationException.php
Normal file
10
app/Exceptions/SSLCreationException.php
Normal file
@ -0,0 +1,10 @@
|
||||
<?php
|
||||
|
||||
namespace App\Exceptions;
|
||||
|
||||
use Exception;
|
||||
|
||||
class SSLCreationException extends Exception
|
||||
{
|
||||
//
|
||||
}
|
10
app/Exceptions/ServerInstallationFailed.php
Normal file
10
app/Exceptions/ServerInstallationFailed.php
Normal file
@ -0,0 +1,10 @@
|
||||
<?php
|
||||
|
||||
namespace App\Exceptions;
|
||||
|
||||
use Exception;
|
||||
|
||||
class ServerInstallationFailed extends Exception
|
||||
{
|
||||
//
|
||||
}
|
10
app/Exceptions/ServerProviderError.php
Normal file
10
app/Exceptions/ServerProviderError.php
Normal file
@ -0,0 +1,10 @@
|
||||
<?php
|
||||
|
||||
namespace App\Exceptions;
|
||||
|
||||
use Exception;
|
||||
|
||||
class ServerProviderError extends Exception
|
||||
{
|
||||
//
|
||||
}
|
14
app/Exceptions/SourceControlIsNotConnected.php
Executable file
14
app/Exceptions/SourceControlIsNotConnected.php
Executable file
@ -0,0 +1,14 @@
|
||||
<?php
|
||||
|
||||
namespace App\Exceptions;
|
||||
|
||||
use App\Models\SourceControl;
|
||||
use Exception;
|
||||
|
||||
class SourceControlIsNotConnected extends Exception
|
||||
{
|
||||
public function __construct(protected SourceControl|string $sourceControl, string $message = null)
|
||||
{
|
||||
parent::__construct($message ?? 'Source control is not connected');
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user