Uploaded From CV. Swandhana Server
This commit is contained in:
@@ -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 {}
|
||||
Reference in New Issue
Block a user