owowagency /
laravel-media
| 1 | <?php |
||
| 2 | |||
| 3 | namespace Owowagency\LaravelMedia\Exceptions; |
||
| 4 | |||
| 5 | use Exception; |
||
| 6 | |||
| 7 | class UploadException extends Exception |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * UploadException constructor. |
||
| 11 | * |
||
| 12 | * @param string $type |
||
| 13 | */ |
||
| 14 | public function __construct(string $type = 'string') |
||
| 15 | { |
||
| 16 | $message = trans('laravel-media::general.exception', [ |
||
| 17 | 'type' => $type, |
||
| 18 | ]); |
||
| 19 | |||
| 20 | parent::__construct($message, 0, null); |
||
|
0 ignored issues
–
show
Bug
introduced
by
Loading history...
|
|||
| 21 | } |
||
| 22 | } |
||
| 23 |