<?php
namespace IntellexApps\PHP\UploadFile\Domain\Exception\FileSystem;

use IntellexApps\PHP\UploadFile\Domain\Exception\UploadFileException;
use IntellexApps\PHP\UploadFile\Domain\Service\FileSystemService;

class DirectoryNotWritableException extends UploadFileException
{
    /**
     * Construct default message
     *
     * DirectoryNotWritableException constructor.
     * @param string $path
     */
    public function __construct($path)
    {
        parent::__construct(__('Directory not writable: %s', FileSystemService::relativePath($path)));
    }
}
