]> git.immae.eu Git - github/shaarli/Shaarli.git/blame - application/exceptions/IOException.php
Shaarli's translation
[github/shaarli/Shaarli.git] / application / exceptions / IOException.php
CommitLineData
b2306b0c
A
1<?php
2
3/**
4 * Exception class thrown when a filesystem access failure happens
5 */
6class IOException extends Exception
7{
8 private $path;
9
10 /**
11 * Construct a new IOException
12 *
13 * @param string $path path to the resource that cannot be accessed
14 * @param string $message Custom exception message.
15 */
16 public function __construct($path, $message = '')
17 {
18 $this->path = $path;
12266213 19 $this->message = empty($message) ? t('Error accessing') : $message;
b2306b0c
A
20 $this->message .= ' "' . $this->path .'"';
21 }
22}