laravel-6 support
This commit is contained in:
11
vendor/unisharp/laravel-filemanager/src/Exceptions/DuplicateFileNameException.php
vendored
Normal file
11
vendor/unisharp/laravel-filemanager/src/Exceptions/DuplicateFileNameException.php
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
namespace UniSharp\LaravelFilemanager\Exceptions;
|
||||
|
||||
class DuplicateFileNameException extends \Exception
|
||||
{
|
||||
public function __construct()
|
||||
{
|
||||
$this->message = trans('laravel-filemanager::lfm.error-file-exist');
|
||||
}
|
||||
}
|
||||
11
vendor/unisharp/laravel-filemanager/src/Exceptions/EmptyFileException.php
vendored
Normal file
11
vendor/unisharp/laravel-filemanager/src/Exceptions/EmptyFileException.php
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
namespace UniSharp\LaravelFilemanager\Exceptions;
|
||||
|
||||
class EmptyFileException extends \Exception
|
||||
{
|
||||
public function __construct()
|
||||
{
|
||||
$this->message = trans('laravel-filemanager::lfm.error-file-empty');
|
||||
}
|
||||
}
|
||||
11
vendor/unisharp/laravel-filemanager/src/Exceptions/ExcutableFileException.php
vendored
Normal file
11
vendor/unisharp/laravel-filemanager/src/Exceptions/ExcutableFileException.php
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
namespace UniSharp\LaravelFilemanager\Exceptions;
|
||||
|
||||
class ExcutableFileException extends \Exception
|
||||
{
|
||||
public function __construct()
|
||||
{
|
||||
$this->message = 'Invalid file detected';
|
||||
}
|
||||
}
|
||||
11
vendor/unisharp/laravel-filemanager/src/Exceptions/FileFailedToUploadException.php
vendored
Normal file
11
vendor/unisharp/laravel-filemanager/src/Exceptions/FileFailedToUploadException.php
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
namespace UniSharp\LaravelFilemanager\Exceptions;
|
||||
|
||||
class FileFailedToUploadException extends \Exception
|
||||
{
|
||||
public function __construct($error_code)
|
||||
{
|
||||
$this->message = 'File failed to upload. Error code: ' . $error_code;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
namespace UniSharp\LaravelFilemanager\Exceptions;
|
||||
|
||||
class FileSizeExceedConfigurationMaximumException extends \Exception
|
||||
{
|
||||
public function __construct($file_size)
|
||||
{
|
||||
$this->message = trans('laravel-filemanager::lfm.error-size') . $file_size;
|
||||
}
|
||||
}
|
||||
11
vendor/unisharp/laravel-filemanager/src/Exceptions/FileSizeExceedIniMaximumException.php
vendored
Normal file
11
vendor/unisharp/laravel-filemanager/src/Exceptions/FileSizeExceedIniMaximumException.php
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
namespace UniSharp\LaravelFilemanager\Exceptions;
|
||||
|
||||
class FileSizeExceedIniMaximumException extends \Exception
|
||||
{
|
||||
public function __construct()
|
||||
{
|
||||
$this->message = trans('laravel-filemanager::lfm.error-file-size', ['max' => ini_get('upload_max_filesize')]);
|
||||
}
|
||||
}
|
||||
11
vendor/unisharp/laravel-filemanager/src/Exceptions/InvalidMimeTypeException.php
vendored
Normal file
11
vendor/unisharp/laravel-filemanager/src/Exceptions/InvalidMimeTypeException.php
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
namespace UniSharp\LaravelFilemanager\Exceptions;
|
||||
|
||||
class InvalidMimeTypeException extends \Exception
|
||||
{
|
||||
public function __construct($mimetype)
|
||||
{
|
||||
$this->message = trans('laravel-filemanager::lfm.error-mime') . $mimetype;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user