Conditions | 1 |
Paths | 1 |
Total Lines | 8 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
15 | public function __construct($id, $code = 0) |
||
16 | { |
||
17 | $this->setMessageTemplate("Argument 'BinaryFile::id' is invalid: '%id%' is wrong value, binary file ids can not begin with a '/'"); |
||
18 | $this->setParameters(['id' => $id]); |
||
19 | |||
20 | // Parent does not let us set specifc message, so we jump all the way up to root Exception __construct(). |
||
21 | Exception::__construct($this->getBaseTranslation(), $code); |
||
22 | } |
||
23 | } |
||
24 |