‪TYPO3CMS  ‪main
OnlineMediaAlreadyExistsException.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
5 /*
6  * This file is part of the TYPO3 CMS project.
7  *
8  * It is free software; you can redistribute it and/or modify it under
9  * the terms of the GNU General Public License, either version 2
10  * of the License, or any later version.
11  *
12  * For the full copyright and license information, please read the
13  * LICENSE.txt file that was distributed with this source code.
14  *
15  * The TYPO3 project - inspiring people to share!
16  */
17 
19 
22 
27 {
28  public function ‪__construct(
29  private readonly ‪File $onlineMedia,
30  int $code = 0
31  ) {
32  parent::__construct(
33  sprintf('Online media asset "%s" does already exist in the target folder.', $onlineMedia->getName()),
34  $code
35  );
36  }
37 
38  public function ‪getOnlineMedia(): ‪File
39  {
40  return $this->onlineMedia;
41  }
42 }
‪TYPO3\CMS\Core\Resource\Exception\OnlineMediaAlreadyExistsException\getOnlineMedia
‪getOnlineMedia()
Definition: OnlineMediaAlreadyExistsException.php:38
‪TYPO3\CMS\Core\Resource\File
Definition: File.php:26
‪TYPO3\CMS\Core\Resource\Exception
Definition: Exception.php:21
‪TYPO3\CMS\Core\Resource\Exception\OnlineMediaAlreadyExistsException\__construct
‪__construct(private readonly File $onlineMedia, int $code=0)
Definition: OnlineMediaAlreadyExistsException.php:28
‪TYPO3\CMS\Core\Resource\Exception\OnlineMediaAlreadyExistsException
Definition: OnlineMediaAlreadyExistsException.php:27
‪TYPO3\CMS\Core\Resource\Exception
Definition: AbstractFileOperationException.php:16