public function __construct(Pathname $pathname, $code = 0, $previous = null) { if ($code === 0) { $code = FilesystemException::FILE_NOT_FOUND; } parent::__construct(sprintf('File %s not found!', $pathname->full()), $code, $previous); $this->pathname = $pathname; }
public function __construct(Pathname $pathname, $code = 0, \Exception $previous = null) { if ($code === 0) { $code = FilesystemException::NOT_A_DIRECTORY; } parent::__construct(sprintf('Pathname %s is not a directory!', $pathname->full()), $code, $previous); $this->pathname = $pathname; }
public function __construct(Pathname $pathname, $code = 0, $previous = null) { if ($code === 0) { $code = FilesystemException::NOT_A_FILE; } parent::__construct(sprintf('Pathname %s is not a file!', $pathname->full()), $code, $previous); $this->pathname = $pathname; }
public function __construct(Pathname $srcPathname, Pathname $dstPathname, $code = 0, $previous = null) { parent::__construct(sprintf('Could not replace directory %s with file %s!', $dstPathname->full(), $srcPathname->full()), $code, $previous); $this->srcPathname = $srcPathname; $this->dstPathname = $dstPathname; }