Файл: concrete5.7.5.6/concrete/vendor/punic/punic/code/Exception/DataFileNotReadable.php
Строк: 37
<?php
namespace PunicException;
/**
* An exception raised when an data file was not read.
*/
class DataFileNotReadable extends PunicException
{
protected $dataFilePath;
/**
* Initializes the instance.
*
* @param string $dataFilePath The path to the unreadable file
* @param Exception $previous The previous exception used for the exception chaining
*/
public function __construct($dataFilePath, $previous = null)
{
$this->dataFilePath = $dataFilePath;
$message = "Unable to read from the data file '$dataFilePath'";
parent::__construct($message, PunicException::DATA_FILE_NOT_READABLE, $previous);
}
/**
* Retrieves the path to the unreadable file.
*
* @return string
*/
public function getDataFilePath()
{
return $this->dataFilePath;
}
}