Skip to content

Commit 87c0214

Browse files
committed
MC-41844: Exception handle is updated
1 parent 6afb291 commit 87c0214

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

AdobeStockImage/Model/Storage/Save.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public function __construct(
5151
* @param string $imageUrl
5252
* @param string $destinationPath
5353
* @return string
54-
* @throws AlreadyExistsException | LengthException
54+
* @throws AlreadyExistsException
5555
* @throws FileSystemException
5656
*/
5757
public function execute(string $imageUrl, string $destinationPath = '') : string
@@ -60,7 +60,7 @@ public function execute(string $imageUrl, string $destinationPath = '') : string
6060
$maxFilenameLength = self::MAX_LENGTH;
6161

6262
if (strlen($destinationPath) > $maxFilenameLength) {
63-
throw new \LengthException(
63+
throw new AlreadyExistsException(
6464
__('Destination path is too long; must be %1 characters or less', $maxFilenameLength)
6565
);
6666
}

0 commit comments

Comments
 (0)