Skip to content

Commit 6e310bd

Browse files
Bernhard Schussekfabpot
Bernhard Schussek
authored andcommitted
Integrated Form, Validator, I18N and File component
1 parent 3eb5545 commit 6e310bd

File tree

261 files changed

+21593
-5
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

261 files changed

+21593
-5
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
<?php
2+
3+
namespace Symfony\Components\File\Exception;
4+
5+
/*
6+
* This file is part of the symfony package.
7+
* (c) Fabien Potencier <[email protected]>
8+
*
9+
* For the full copyright and license information, please view the LICENSE
10+
* file that was distributed with this source code.
11+
*/
12+
13+
/**
14+
* Thrown when the access on a file was denied.
15+
*
16+
* @author Bernhard Schussek <[email protected]>
17+
*/
18+
class AccessDeniedException extends FileException
19+
{
20+
/**
21+
* Constructor.
22+
*
23+
* @param string $path The path to the accessed file
24+
*/
25+
public function __construct($path)
26+
{
27+
parent::__construct(sprintf('The file %s could not be accessed', $path));
28+
}
29+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<?php
2+
3+
namespace Symfony\Components\File\Exception;
4+
5+
/*
6+
* This file is part of the symfony package.
7+
* (c) Fabien Potencier <[email protected]>
8+
*
9+
* For the full copyright and license information, please view the LICENSE
10+
* file that was distributed with this source code.
11+
*/
12+
13+
/**
14+
* Thrown when an error occurred in the component File
15+
*
16+
* @author Bernhard Schussek <[email protected]>
17+
*/
18+
class FileException extends \RuntimeException
19+
{
20+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
<?php
2+
3+
namespace Symfony\Components\File\Exception;
4+
5+
/*
6+
* This file is part of the symfony package.
7+
* (c) Fabien Potencier <[email protected]>
8+
*
9+
* For the full copyright and license information, please view the LICENSE
10+
* file that was distributed with this source code.
11+
*/
12+
13+
/**
14+
* Thrown when a file was not found
15+
*
16+
* @author Bernhard Schussek <[email protected]>
17+
*/
18+
class FileNotFoundException extends FileException
19+
{
20+
/**
21+
* Constructor.
22+
*
23+
* @param string $path The path to the file that was not found
24+
*/
25+
public function __construct($path)
26+
{
27+
parent::__construct(sprintf('The file %s does not exist', $path));
28+
}
29+
}

0 commit comments

Comments
 (0)