aboutsummaryrefslogtreecommitdiffhomepage
path: root/application/FileUtils.php
blob: 6a12ef0e15cf0d338895677519cff7f0cfdf6ea0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?php
/**
 * Exception class thrown when a filesystem access failure happens
 */
class IOException extends Exception
{
    private $path;

    /**
     * Construct a new IOException
     *
     * @param string $path path to the ressource that cannot be accessed
     */
    public function __construct($path)
    {
        $this->path = $path;
        $this->message = 'Error accessing '.$this->path;
    }
}