12266213d0
* translation system and unit tests * Translations everywhere Dont use translation merge It is not available with PHP builtin gettext, so it would have lead to inconsistency.
22 lines
553 B
PHP
22 lines
553 B
PHP
<?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 resource that cannot be accessed
|
|
* @param string $message Custom exception message.
|
|
*/
|
|
public function __construct($path, $message = '')
|
|
{
|
|
$this->path = $path;
|
|
$this->message = empty($message) ? t('Error accessing') : $message;
|
|
$this->message .= ' "' . $this->path .'"';
|
|
}
|
|
}
|