Uploaded From CV. Swandhana Server

This commit is contained in:
Duidev Software House
2025-01-27 08:16:55 +07:00
commit 6b3be42361
15186 changed files with 2328862 additions and 0 deletions
@@ -0,0 +1,23 @@
<?php
declare(strict_types=1);
namespace Arcanedev\LogViewer\Exceptions;
/**
* Class FilesystemException
*
* @author ARCANEDEV <[email protected]>
*/
class FilesystemException extends LogViewerException
{
public static function cannotDeleteLog()
{
return new static('There was an error deleting the log.');
}
public static function invalidPath(string $path)
{
return new static("The log(s) could not be located at : $path");
}
}
@@ -0,0 +1,25 @@
<?php
declare(strict_types=1);
namespace Arcanedev\LogViewer\Exceptions;
/**
* Class LogNotFoundException
*
* @author ARCANEDEV <[email protected]>
*/
class LogNotFoundException extends LogViewerException
{
/**
* Make the exception.
*
* @param string $date
*
* @return static
*/
public static function make(string $date)
{
return new static("Log not found in this date [{$date}]");
}
}
@@ -0,0 +1,12 @@
<?php
declare(strict_types=1);
namespace Arcanedev\LogViewer\Exceptions;
/**
* Class LogViewerException
*
* @author ARCANEDEV <[email protected]>
*/
class LogViewerException extends \Exception {}