ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
FileExistsException.php
Go to the documentation of this file.
1<?php
2
3namespace League\Flysystem;
4
5use Exception as BaseException;
6
8{
12 protected $path;
13
21 public function __construct($path, $code = 0, BaseException $previous = null)
22 {
23 $this->path = $path;
24
25 parent::__construct('File already exists at path: ' . $this->getPath(), $code, $previous);
26 }
27
33 public function getPath()
34 {
35 return $this->path;
36 }
37}
An exception for terminatinating execution or to throw for unit testing.
getPath()
Get the path which was found.
__construct($path, $code=0, BaseException $previous=null)
Constructor.
$code
Definition: example_050.php:99