Skip to content

Commit

Permalink
Integrated Form, Validator, I18N and File component
Browse files Browse the repository at this point in the history
  • Loading branch information
Bernhard Schussek authored and fabpot committed Jun 24, 2010
1 parent 3eb5545 commit 6e310bd
Show file tree
Hide file tree
Showing 261 changed files with 21,593 additions and 5 deletions.
29 changes: 29 additions & 0 deletions src/Symfony/Components/File/Exception/AccessDeniedException.php
@@ -0,0 +1,29 @@
<?php

namespace Symfony\Components\File\Exception;

/*
* This file is part of the symfony package.
* (c) Fabien Potencier <fabien.potencier@symfony-project.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

/**
* Thrown when the access on a file was denied.
*
* @author Bernhard Schussek <bernhard.schussek@symfony-project.com>
*/
class AccessDeniedException extends FileException
{
/**
* Constructor.
*
* @param string $path The path to the accessed file
*/
public function __construct($path)
{
parent::__construct(sprintf('The file %s could not be accessed', $path));
}
}
20 changes: 20 additions & 0 deletions src/Symfony/Components/File/Exception/FileException.php
@@ -0,0 +1,20 @@
<?php

namespace Symfony\Components\File\Exception;

/*
* This file is part of the symfony package.
* (c) Fabien Potencier <fabien.potencier@symfony-project.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

/**
* Thrown when an error occurred in the component File
*
* @author Bernhard Schussek <bernhard.schussek@symfony-project.com>
*/
class FileException extends \RuntimeException
{
}
29 changes: 29 additions & 0 deletions src/Symfony/Components/File/Exception/FileNotFoundException.php
@@ -0,0 +1,29 @@
<?php

namespace Symfony\Components\File\Exception;

/*
* This file is part of the symfony package.
* (c) Fabien Potencier <fabien.potencier@symfony-project.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

/**
* Thrown when a file was not found
*
* @author Bernhard Schussek <bernhard.schussek@symfony-project.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));
}
}

0 comments on commit 6e310bd

Please sign in to comment.