Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Integrated Form, Validator, I18N and File component
- Loading branch information
Showing
261 changed files
with
21,593 additions
and
5 deletions.
There are no files selected for viewing
29 changes: 29 additions & 0 deletions
29
src/Symfony/Components/File/Exception/AccessDeniedException.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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)); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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
29
src/Symfony/Components/File/Exception/FileNotFoundException.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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)); | ||
} | ||
} |
Oops, something went wrong.