stk2k/file-system

View on GitHub
src/Exception/FileRenameException.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php
declare(strict_types=1);

namespace stk2k\filesystem\Exception;

use Throwable;

use stk2k\filesystem\File;

class FileRenameException extends FileSystemException
{
    /**
     * FileRenameException constructor.
     *
     * @param File $old_file
     * @param File $new_file
     * @param Throwable|null $prev
     */
    public function __construct( File $old_file, File $new_file, Throwable $prev = NULL )
    {
        $message = "File renaming failed: {$old_file} to {$new_file}";
        parent::__construct($message, $prev);
    }
}