?iť?

Your IP : 3.145.81.173


Current Path : /home/scgforma/www/cloud/3rdparty/punic/punic/code/Exception/
Upload File :
Current File : /home/scgforma/www/cloud/3rdparty/punic/punic/code/Exception/DataFileNotReadable.php

<?php

namespace Punic\Exception;

/**
 * An exception raised when an data file was not read.
 */
class DataFileNotReadable extends \Punic\Exception
{
    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, \Punic\Exception::DATA_FILE_NOT_READABLE, $previous);
    }

    /**
     * Retrieves the path to the unreadable file.
     *
     * @return string
     */
    public function getDataFilePath()
    {
        return $this->dataFilePath;
    }
}