Exponential 5.x Kernel 7.5.40 Exponential New Stack (Symfony-based) Kernel — PHP Class Reference

InvalidBinaryAbsolutePathException.php
Go to the documentation of this file.
1 <?php
2
7 namespace eZ\Publish\Core\IO\Exception;
8
9 use Exception;
10
11 class InvalidBinaryAbsolutePathException extends InvalidBinaryFileIdException
12 {
13 public function __construct($id, $code = 0)
14 {
15 $this->setMessageTemplate("Argument 'BinaryFile::id' is invalid: '%id%' is wrong value, binary file ids can not begin with a '/'");
16 $this->setParameters(['%id%' => $id]);
17
18 // Parent does not let us set specifc message, so we jump all the way up to root Exception __construct().
19 Exception::__construct($this->getBaseTranslation(), $code);
20 }
21 }
eZ\Publish\Core\IO\Exception\InvalidBinaryAbsolutePathException
Definition: InvalidBinaryAbsolutePathException.php:12
eZ\Publish\Core\IO\Exception\InvalidBinaryAbsolutePathException\__construct
__construct($id, $code=0)
Definition: InvalidBinaryAbsolutePathException.php:13
eZ\Publish\Core\IO\Exception\InvalidBinaryFileIdException
Definition: InvalidBinaryFileIdException.php:12
eZ\Publish\Core\Base\Translatable\setMessageTemplate
setMessageTemplate($messageTemplate)
Injects the message template.
eZ\Publish\Core\Base\Translatable\getBaseTranslation
getBaseTranslation()
Returns base translation, computed with message template and parameters.
eZ\Publish\Core\Base\Translatable\setParameters
setParameters(array $parameters)
Injects the hash map, with param placeholder as key and its corresponding value.
eZ\Publish\Core\IO\Exception
Definition: BinaryFileNotFoundException.php:7
Copyright © 1998 – 2026 7x. All rights reserved. Licensed under the GNU GPLv2+.