<?php

namespace Chigi\Sublime\Exception;

use Chigi\Sublime\Settings\Environment;

/**
 * Thrown when a file was not found
 *
 * @author Bernhard Schussek <bschussek@gmail.com>
 */
class FileNotFoundException extends FileException {

    /**
     * Constructor.
     *
     * @param string $path The path to the file that was not found
     */
    public function __construct($path) {
        parent::__construct(sprintf('The file "%s" does not exist', $path));
    }

    public function setLine($line) {
        $this->line = $line;
    }

    public function setCode($code) {
        $this->code = $code;
    }

    public function setFile($file) {
        $this->file = $file;
    }

}

<?php

namespace Chigi\Sublime\Exception;

use Chigi\Sublime\Settings\Environment;

/**
 * Thrown when a file was not found
 *
 * @author Bernhard Schussek <bschussek@gmail.com>
 */
class FileNotFoundException extends FileException {

    /**
     * Constructor.
     *
     * @param string $path The path to the file that was not found
     */
    public function __construct($path) {
        $this->path = $path;
        parent::__construct(sprintf('The file "%s" does not exist', $path));
    }

    public function setLine($line) {
        $this->line = $line;
    }

    public function setCode($code) {
        $this->code = $code;
    }

    public function setFile($file) {
        $this->file = $file;
    }
    
    private $path;
    
    public function getPath() {
        return $this->path;
    }



}

ADD path getter for the wrong file path.
ADD path getter for the wrong file path.

Signed-off-by: Richard Lea <5e20e57f18b15612bae274c2aef7dc395ee6b2a1@zoho.com>
